lua-users home
lua-l archive

Re: Why do we not have an __unindex metamethod?

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


> 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.

AltStyle によって変換されたページ (->オリジナル) /