lua-users home
lua-l archive

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

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)?


Daniel Silverstone               
PGP mail accepted and encouraged.            Key Id: 3CCE BABE 206C 3B69