[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua and references to C/C++ data...
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 9 Aug 2001 23:29:48 -0300
>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.