lua-users home
lua-l archive

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


afaics (not actually tested!), open closures may contain references
to stacks of multiple Lua states and the routines in lfunc.c doesn't
seem to handle that.  The stack compares will not work when 'level'
refers to a completely different stack and closures linked in other
states will not be closed.

And then, shouldn't open closures be closed when a state is closed?
This would even fix the memory leak ;-)

Ciao, ET.

PS: IMHO the old '%' upvalues should either be fully supported or
removed completely.  The current version will error on global up-
values and has a different semantic with local ones.