lua-users home
lua-l archive

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


>> I think you'd run into the problem that there isn't any metamethod
>> called when a table entry is set to nil (aka deleted)?

> __newindex() is called with a value of nil, in this case.

On 5/8/07, Paul Hudson <phudson@pobox.com> wrote:

Oh. Is that documented? I'm sure when I was needing to know about deletions
I couldn't find anything, but that was probably due to me reading things
badly.

http://www.lua.org/pil/index.html#13

-mpb