[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Removing userdata variables!
- From: erik@... (Erik Hougaard)
- Date: Fri, 28 Aug 1998 10:22:35 +0200
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 ?