Re: upcoming changes in Lua 5.2 [was Re: Location of a package]
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: upcoming changes in Lua 5.2 [was Re: Location of a package]
- From: "Jérôme Vuarand" <jerome.vuarand@...>
- Date: 2008年2月20日 20:32:19 -0500
2008年2月19日, Roberto Ierusalimschy <roberto@inf.puc-rio.br>:
> > Roberto, is there any description of upcoming changes in Lua 5.2?
>
> There is no "official" roadmap :) The following is a list of what we
> have been doing.
>
> We have already implemented several small changes:
>
> [...]
>
> - "metamethods" __pairs & __ipairs
Why is the new ipairs using an __ipairs metamethod rather than the
existing __index ?
> - tables and strings respect __len metamethod
Any plan to provide a C API that would trigger this metamethod ?
Currently lua_objlen don't call __len on userdata.