DMD 0.170 release

Ivan Senji ivan.senji_REMOVE_ at _THIS__gmail.com
Wed Oct 18 13:50:00 PDT 2006


BCS wrote:
> Walter Bright wrote:
>> Stewart Gordon wrote:
>>
>>> Vladimir Kulev wrote:
>>>
>>>> J Duncan wrote:
>>>>
>>>>> Disagree with you, its a nice thing to have.
>>>>
>>>>
>>>> There are many things which are nice to have, but only really 
>>>> essential ones
>>>> should be in language itself. Reverse foreach can be implemented in 
>>>> other
>>>> way.
>>>
>>>
>>> So can ordinary foreach.
>>
>>
>> All you really need is if and goto!
> 
> 
> no, all you really need is goto and label variables
> 
> int i = 10;
> loop:
>     i--;
>     goto [loop, quit][cast(int)(i==0)];
> quit:

But this doesn't work, you can't create an array of label names.



More information about the Digitalmars-d-announce mailing list