lua-users home
lua-l archive

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


From: Rici Lake <lua@ricilake.net>
>  
> It is not a compiler issue, as I see it. The syntax:
> 
>    for k in iterator, object, current do
>    end
> 
> is all the compiler knows about.
>

> The proposal I posted a few hours ago does cover regular meta-free
> tables
> (by doing the same thing as the current standard pairs function). A
> simpler
> implementation, which ignored the possibility of tables with __call
> metamethods, would have simply used the standard pairs function.


Yeah, I read the list in digest mode, and your proposal just came in this
batch :)  I'd be happy with an official change that does approximately
this, so we can protect special tables and handle proxies nicely.

-Lucas