foreach

Nick Sabalausky via Digitalmars-d digitalmars-d at puremagic.com
Sat Jun 14 19:25:20 PDT 2014


On 6/14/2014 9:15 AM, Timon Gehr wrote:
> On 06/13/2014 11:41 PM, Jonathan M Davis via Digitalmars-d wrote:
>> It's a special case in that the middle portion is supposed to be the
>> condition
>> that the loop use to determine whether it can continue, and omitting
>> it means
>> that it has to add the true itself,
>
> No, omitting it means that it does not need to check a condition in the
> first place.

Yup. A loop without a condition is an...*unconditional* loop. Sounds 
like infinite to me.



More information about the Digitalmars-d mailing list