lua-users home
lua-l archive

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


"Adam D. Moss" wrote:
> 
> Hi!
> 
> I was wondering... once a heavy user data is created with
> lua_newuserdata(), is it guaranteed to stay at that same returned
> address until it is finally destroyed?  

Yes. Lua uses a non-copying, non-moving mark and sweep garbage 
collector. Your pointers are safe. As for the future, I'll 
leave that up to the makers of Lua.

-- 
"No one knows true heroes, for they speak not of their greatness." -- 
Daniel Remar.
Björn De Meyer 
bjorn.demeyer@pandora.be