lua-users home
lua-l archive

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


Also, don't all functions still have an _ENV upvalue? (Unless all upvalues can be from higher lexical scopes.)

On Sun, 23 May 2010 11:26:44 -0700, Florian Weimer <fw@deneb.enyo.de> wrote:

* Jonathan Castello:

Today, one could lift such definitions out of the code and
explicitly store them in local variables, but doing so can break
the flow of the code for reading.

Correct me if I'm wrong, but isn't that what light C functions are?

Not really, the code for Lua functions still needs to be
garbage-collected, and this is not necessary for C functions.