[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: ipairs and extending numeric for loop
- From: phlnc8 <phlnc8@...>
- Date: Wed, 26 May 2010 12:14:36 -0400
On Wed, May 26, 2010 at 11:59 AM, Duncan Cross <duncan.cross@gmail.com> wrote:
> On Wed, May 26, 2010 at 4:50 PM, phlnc8 <phlnc8@gmail.com> wrote:
>> What would be lost then is general iteration forms such as:
>> for a,b,c,d,e in some_iterator_returning_five_values() do ...
>>
>> Is that frequent?
>
> Yes - string.gmatch() returns an arbitrary number of capture values. I
> use this quite a lot.
>
> -Duncan
>
You're right! I also use it and just didn't think about it :-(
Sorry for the noise...
Phil