[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Can heavy userdata move? (5alpha)
- From: Björn De Meyer <bjorn.demeyer@...>
- Date: Tue, 26 Nov 2002 21:28:36 +0100
"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