lua-users home
lua-l archive

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


> a,b,c = f(), g(), h()
> do I want to think about whether a will be set to the result of h()
> because f and g choose to return nothing?  Or c be set to the value of
> g() because a returned nil and an error string?
>
> It is "limit", not "eliminate".

Well if that's really what you wan to do, they you would write:

a,b,c = (f()), (g()), (h())

And then "limit" would indeed become "eliminate" (the language does what to tell it to do, no more, no less)