lua-users home
lua-l archive

Re: [ANN] Lua 5.2.0 (work1) now available

[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

AltStyle によって変換されたページ (->オリジナル) /