Subject: Re: compiler tweak offered
To: Greg A. Woods <woods@weird.com>
From: Andrew Brown <atatat@atatdot.net>
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
javascript.

-- 
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org             * "ah!  i see you have the internet
twofsonet@graffiti.com (Andrew Brown)                that goes *ping*!"
andrew@crossbar.com       * "information is power -- share the wealth."