Subject: Re: compiler tweak offered
To: Greg A. Woods <>
From: Andrew Brown <>
List: tech-toolchain
Date: 08/25/2002 13:19:43
>> If I were designing new features for the C language, I'd probably
>> want the loop label to be just like an ordinary label, thus:
>>         outer:  for (x=list; x; x=x->link) {
>>                     while (...) {
>>                         ...
>>                         if (...) continue outer;
>Ah, yes, that makes more sense to me too, and if I'm not mistaken
>there's already prior art for using labels on 'continue' and 'break' (I
>just can't remember where at the moment -- ah, yes, Java & JavaScript.)

not for nothing, but perl does this also, and predates java and

|-----< "CODE WARRIOR" >-----|             * "ah!  i see you have the internet (Andrew Brown)                that goes *ping*!"       * "information is power -- share the wealth."