lua-users home
lua-l archive

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


So I guess the only functions that could benefit from this would be functions that operate exclusively using parameters and locals?

I guess I have a lot of those.

On Sun, 23 May 2010 11:47:13 -0700, Henk Boom <henk@henk.ca> wrote:

On 23 May 2010 14:41, Stuart P. Bentley <stuart@testtrack4.com> wrote:
Also, don't all functions still have an _ENV upvalue? (Unless all upvalues
can be from higher lexical scopes.)

Functions which never reference _ENV (i.e. do not use any globals)
probably won't have it as an upvalue.

    henk