lua-users home
lua-l archive

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


On Fri, Apr 29, 2011 at 06:45:11PM +0200, Roberto Ierusalimschy wrote:
> > Will __index|__newindex also be respected?
> 
> No.

While you're in such a forthcoming mood: what will happen in
the following cases?
    t={1,2,3}; table.insert(t,-1e8,nil); print(t[1])
    t={1,2,3}; k=-42; table.insert(t,k,1); table.remove(t,k); print(t[1])

Dirk