[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Possible closure bug in 4.1 snapshot
- From: Edgar Toernig <froese@...>
- Date: Sun, 25 Nov 2001 03:59:47 +0100
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 ;-)
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.