lua-users home
lua-l archive

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


Sorry to come back on that, but how to do that in a C function (ie the send_message function, typically) ?
I do not see how i can remove the variable from the C api.

Tanks.
Le 01/03/2011 12:30, Tony Finch a écrit :
On Tue, 1 Mar 2011, Sylvain Fabre wrote:
Le 28/02/2011 18:22, Tony Finch a écrit :
There is no single variable that refers to the userdata. You will have to
mutate it in place to invalidate it.
Hum... :) What do you mean by "mutate it in place to invalidate it" ?
Change the contents of the userdata itself so that it is no longer a valid
instance of its original type.

Tony.


--
=================================
Sylvain FABRE
sylvain.fabre@inpixal.com
Fixe: 09 72 11 30 24
Mobile: 06 30 12 72 34
Fax : 09 72 11 10 71
=================================