[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lua_replace bug?
- From: Daniel Silverstone <dsilvers@...>
- Date: Fri, 23 Sep 2011 10:31:28 +0100
On Fri, Sep 23, 2011 at 05:14:45PM +0800, 雨雨 wrote:
> this is a bug?
> like this:
>
> now
> lua_replace(L,-3);
> the val03 is not exec __gc.
> a bug?
Garbage collection is not guaranteed to be immediate.
Does the __gc metamethod run if you subsequently force the garbage collector to
run to completion (and/or close the lua state)?
D.
--
Daniel Silverstone http://www.digital-scurf.org/
PGP mail accepted and encouraged. Key Id: 3CCE BABE 206C 3B69