lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>>   (a)=3; (print or write)(9)
>
>How is that going to work?  Will the ; be required in Lua 4.1?

Yes, in this case the ';' will be required to remove the ambiguity.
I'm glad that ';' will now be useful (but not always required)!

>	(a or b).c = 1
>	a,(b),c = 1,2,3

These will be valid in 4.1.

>And here it may be useful:
>	f(a, b, (g(1)))
>which will _always_ pass 3 args to f because the () around the g call
>will generate a single r-value.

This will not be the semantics in 4.1.
--lhf