|
|
||
|
Can someone confirm that userdata created(in Lua 4) by
data = (data *) malloc(sizeof(data_t));
lua_pushusertag(L, (void *)data, LUA_ANYTAG);
lua_pushcclosure(L, l_myfunc, 1);
is not ever collected.
Rephrased - is it true that userdata is only collected when a
"gc" method is set?
DB