Re: Why do we not have an __unindex metamethod?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Why do we not have an __unindex metamethod?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: 2015年4月14日 20:58:53 -0300
> Why do we not have an __unindex metamethod, that gets called when a
> key gets set to nil (either by GC or manually (including rawset))?
If you need control over set and get events for a table, use a proxy table.
In any case, rawset is for *raw* access, so no metamethods are called.