lua-users home
lua-l archive

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

> 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.

-- Roberto