lua-users home
lua-l archive

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


Dan Marks wrote:
> 
> The way I've always handled this is to create a tag number just for
> "dead" variables, and change the lua Object to the dead tag number
> using lua_settag().  That way, you can know its not valid anymore
> and not use it, even if it is still in scope under Lua.
> 

That is the best idea so far, but it still stinks :-), I would think
that there should be a better way to get rid of the value - A way to
mark it for the garbage collection ?

Erik Hougaard