lua-users home
lua-l archive

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

2010/1/12 GrayFace <>

- '__pairs'/'__ipairs' metamethod
Now rawpairs and rawipairs are needed.


Best regards,
Sergey Rozhenko       

Not really.
In the current iteration (of which I do not approve), rawpairs is just: for k , v in next , mytable do ...... end
and rawipairs is just for i=1,#mylist do local v = mylist[i]; ...... end

ipairs really is pointless with it's newly defined behaviour....