lua-users home
lua-l archive

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

> > Yes. The main point is that if x==y then t[x]==t[y]. And 1==1.0, as
> > expected.
> > 
> Should that be "if rawequal(x,y) and rawequal(t[x],t[x]) then
> rawequal(t[x],t[y])"?
> i.e. table lookup does not invoke __eq metamethods does it?  Also
> table values can be NaN (but keys cannot.)

Right on both counts.