lua-users home
lua-l archive

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


> The technique in:
>
> http://lua-users.org/lists/lua-l/2007-06/msg00088.html
>
> would appear to integrate better with the GC accounting logic, but I would 
> like some confirmation from the Lua team in that regard. I would also be 
> inclined to implement this by changing the proxies to consist of a pointer 
> and a size and keep track of the size to report as released in the __gc 
> metamethod in the object itself.

I do not see any problem with this (as long as the program keeps the
balance right: all increments should be eventually decremented by the
same amount).

-- Roberto