[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: ipairs in Lua 5.3.0-alpha
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 19 Aug 2014 11:22:39 -0300
> Yes, since it only worked on raw tables in Lua 5.1, I can follow you
> here. I wonder why __ipairs was introduced in Lua 5.2 in the first
> place then?
Mainly to allow proxies and to ensure that tables with metamethods
cannot be "raw"-accessed unless through explicit raw functions.
(Unfortunately, this last goal is broken: "pairs" over a table with
no metatable returns a raw 'next' function that can be used over
any table.)
-- Roberto
- References:
- Re: ipairs in Lua 5.3.0-alpha, Jan Behrens
- Re: ipairs in Lua 5.3.0-alpha, Dirk Laurie
- Re: ipairs in Lua 5.3.0-alpha, Jan Behrens
- Re: ipairs in Lua 5.3.0-alpha, Jan Behrens
- Re: ipairs in Lua 5.3.0-alpha, Dirk Laurie
- Re: ipairs in Lua 5.3.0-alpha, Jan Behrens
- Re: ipairs in Lua 5.3.0-alpha, Dirk Laurie
- Re: ipairs in Lua 5.3.0-alpha, Jan Behrens
- Re: ipairs in Lua 5.3.0-alpha, Roberto Ierusalimschy
- Re: ipairs in Lua 5.3.0-alpha, Jan Behrens