lua-users home
lua-l archive

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

If I wanted to do this myself, I'd probably either modify the source code
directly or maybe implement a pre-processor on the text reader to modify the
Lua source prior to giving it to the parser.

But this is not really the point - as Roberto said, we know how to do this,
the issue is weather not how. This feature is intended to improve (my view)
the implementation of reusable libraries. Libraries are only reusable if
they target the standard language.

> -----Original Message-----
> From: [mailto:lua-
>] On Behalf Of Luiz Henrique de
> Figueiredo
> Sent: 17 December 2009 16:54
> To: Lua list
> Subject: Re: '__iter', yet again!
> > On Thu, Dec 17, 2009 at 11:29 AM, Luiz Henrique de Figueiredo
> > <> wrote:
> > > Other application do need to recognize expressions but in this case
> you
> > > you only need to issue "__iter_handler(" after "in" and ")" before
> "do".
> >
> > unless that expression includes a function definition, with included
> > 'for'
> Right... So, yes you do need to count block nesting levels.