lua-users home
lua-l archive

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


On Thu, Jul 26, 2018, 12:56 AM Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
This is correct.

Of course, if a new metamethod is under consideration.  It sounded like you were preferring a plain callable.

The creation of a scoped variable needs to allocate memory, and therefore
it could fail without creating the scoped variable!

Would it be reasonable to only allow scoped var assignment at declaration, and not add the var to the stack if nil?