[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: deprecating 'for x in t'
- From: Lucas Ackerman <glitch@...>
- Date: Tue, 2 Nov 2004 10:35:09 -0500
From: Rici Lake <email@example.com>
> It is not a compiler issue, as I see it. The syntax:
> for k in iterator, object, current do
> is all the compiler knows about.
> The proposal I posted a few hours ago does cover regular meta-free
> (by doing the same thing as the current standard pairs function). A
> 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.