lua-users home
lua-l archive

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


Andrea:

On Fri, May 15, 2020 at 9:55 PM Andrea <andrea.l.vitali@gmail.com> wrote:
> Actually I like that there is no optimization: it makes Lua light while giving the programmer more control on what is going on under the hood.
> As you say, if you deem the variable not useful anymore, you can set it to nil. And static analysis can always help.

Bear in mind setting a variable to nil in a language like lua which
has "finalizers" ( the __gc methods ) MAY have unexpected side
effects.

Francisco Olarte.
_______________________________________________
lua-l mailing list -- lua-l@lists.lua.org
To unsubscribe send an email to lua-l-leave@lists.lua.org