lua-users home
lua-l archive

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


I said:

>Ah, you mean to remove the t entry in Private when t is collected?
>In Lua 3.2 you can set the "gc" tag method of t so that it removes the entry
>in Private.

This is silly: t will *never* be collected because it remains as an index in
Private. So, the "gc" tag method will never be called...
I think Diego explained it: you'll need weak tables from 4.1.

I'm sorry about the noise.
--lhf