Breaking out of several nested loops (& ANSI C)

Henry Spencer henry at utzoo.UUCP
Sun Oct 14 08:49:21 AEST 1984


> ... if those are really the only goto's we really want, why bother
> implementing the whole power of an all purpose 'goto'? ...

Because the all-purpose goto, revolting though it is, already exists in
C and does not need re-inventing.

Personally, I think "return" makes a dandy multi-level exit; I haven't
used, or missed, goto for years.
-- 
				Henry Spencer @ U of Toronto Zoology
				{allegra,ihnp4,linus,decvax}!utzoo!henry



More information about the Comp.lang.c mailing list