jaeandersson / swig

SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages.
http://www.swig.org
Other
23 stars 19 forks source link

Optional unpacking of return values #33

Closed jgillis closed 9 years ago

jgillis commented 9 years ago

Consider the Matlab output duality of size:

size(a) % n m
[m,n] = size(a)

I propose a %feature 'optionalunpack' that brings this behavour to a wrapped function.