Just a thought on this, in case you don't need only a 1:1 parallel
assignment:
 
I wanted to support this too, along with returning more than one value, like
LUA does. It is pretty tricky if you don't know at compile time how many
values are expected or returned. Even LUA messes up these assigns in some
cases.

For example, you can have a,b,c = GetAB(), GetC(); where GetAB returns 2
elements. However, if it does not returns 2 and returns 3 elements, you need
some runtime check to handle it.

I wanted to use it for something like x,y,z = GetPosition() or even
object.pos = x, y, z


-- 
View this message in context: 
http://www.nabble.com/about-counting-the-times-of-%27recursion%27-tp23910504p23916433.html
Sent from the Gnu - Bison - Help mailing list archive at Nabble.com.



_______________________________________________
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to