lua-users home
lua-l archive

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

>   I found out what seems to be a bug (correct me if I'm wrong...) in Lua5:  
> when setting numeric indices in a table, the __index metamethod is called
> whether or not the field has an associated value.

__index is called when setting indices?? Or is it __newindex? Can you send
a small example?

-- Roberto