Re: doubt about gc
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: doubt about gc
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: 2001年12月20日 13:05:40 -0200 (EDT)
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