lua-users home
lua-l archive

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



2010/1/12 GrayFace <sergroj@mail.ru>

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

--

___________________________________________
Best regards,
Sergey Rozhenko                 mailto:sergroj@mail.ru



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....

Daurn