[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Integrating Lua with Java
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 21 Oct 2002 12:44:55 -0200
> Argh. It just occurred to me that the reason why the GC tag method is
> never called is probably that the associated object is not a userdata
> object, but rather a Lua table with a non-default tag. Fixing that is
> going to be a little tricky, because the code stores stuff in the
> table for these kinds of objects. Any ideas or takers?
The "usual trick" is to to store a userdata in a reserved table field,
and to use the tag method of this userdata.