lua-users home
lua-l archive

Re: Multiple values returned or vararg expression in numeric for loop

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


2012年9月16日 Petite Abeille <petite.abeille@gmail.com>:
>
> On Sep 16, 2012, at 7:59 PM, Fidelis Assis <fidelis.assis@gmail.com> wrote:
>
>> Anyway, I miss the short "for v in t".
>
> You can achieve the same effect by making your table 'callable' (i.e. __call) and return an appropriate iterator.
Good, thanks for the suggestion. But doing this naturally with be even
better :).
-- 
Fidelis Assis

AltStyle によって変換されたページ (->オリジナル) /