[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: ipairs in Lua 5.3.0-alpha
- From: Dirk Laurie <dirk.laurie@...>
- Date: Wed, 13 Aug 2014 23:10:34 +0200
2014-08-13 22:33 GMT+02:00 Jan Behrens <jbe-lua-l@public-software-group.org>:
> To me, the documentation of Lua 5.2 doesn't seem to indicate whether
> this approach is semantically correct (i.e. whether iteration using
> ipairs may return nil values),
If you supply an __ipairs metamethod, you are in full
control. If not, no nils will be returned.
| will iterate over the pairs (1,t[1]), (2,t[2]), ..., up to the first integer
| key absent from the table.
5.3.0 is still alpha. Anything may change.