[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: tables holding nil
- From: Jim Whitehead II <jnwhiteh@...>
- Date: Wed, 22 Jul 2009 21:30:32 +0100
On Wed, Jul 22, 2009 at 9:29 PM, Cosmin
> Just found out that the __index metamethod is called for x=a[nil], but
> __newindex is not called for a[nil]=x -- instead the operation is
> specifically forbidden. I'd rather have it called too and not throw an
> error. What am I missing?
nil is not a valid table key. That's all!