|
Michael Panetta wrote:
But this does not work, because when lua_dump creates the chunk, the upvalue gets lost.
Incidentally, being able to dump a closure at all is undocumented behavior. See http://lua-users.org/lists/lua-l/2006-08/msg00116.html and the rest of that thread. -- Aaron