Proposal for breaking out of multiple loops
Dick Grune
dick at tjalk.UUCP
Tue Oct 16 01:34:20 AEST 1984
> Can someone PLEASE tell me what the difference between the current 'goto
> label' in C and the proposed 'break label' is? Sounds simply like a goto
> under another nane to me....
> --
> From the Department of Bistromatics: Chuq Von Rospach
> {cbosgd,decwrl,fortune,hplabs,ihnp4,seismo}!nsc!chuqui nsc!chuqui at decwrl.ARPA
The difference between 'goto label' and 'break label' is that 'goto label'
goes to the BEGINNING of the statement labelled 'label' and 'break label' goes
to the END of the statement labelled 'label'.
This also nicely explains the semantics of
foo: x++;
break foo;
:-) :-> :-}
Dick Grune
Vrije Universiteit
Amsterdam
"and my name isn't Richard"
More information about the Comp.lang.c
mailing list