[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lua4.1w4 - for loop with functions - suggestions
- From: "nikdo79" <dominik-wagner@...>
- Date: Wed, 27 Mar 2002 01:29:29 -0000
--- In lua-l@y..., Roberto Ierusalimschy <roberto@i...> wrote:
> > is possible, i would especially like
> >
> > for a,b in MyObject:Get do
>
> You can write
>
> for a,b in MyObject:Get() do ... end
>
>
> -- Roberto
but MyObject:Get() doesn't return an Array or function but is the generator function itself!
Dominik