lua-users home
lua-l archive

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


>The way I do this is in the table handler for the GraphicsObj, I return
>a userdata pointing to &(obj.pos).  The problem is, that the userdata
>I create will eventually be GC'ed .. since it's a pointer to field of
>another strucutre, this will cause free() to have fits.

Lua does not call free for userdata. It's up to the host program to do that.
--lhf