lua-users home
lua-l archive

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


> The __index metamethod receives the nil key, and can act on it, but
> the __newindex metamethod doesn't; the error is generated before the
> metamethod is called. This is an undocumented difference from Lua 4, I
> believe.

Lua 4 has no __newindex method.

-- Roberto