The final word on GOTO (Don't I wis

Doug Gwyn gwyn at smoke.BRL.MIL
Thu Oct 5 23:49:07 AEST 1989


In article <725 at thor.wright.EDU> bkottman at thor.wright.edu writes:
>	This must be really old code since in C, execution falls through
>to the next case anywasy; in every case without the goto, it would hit
>donum: anyways...(albiet after trying the rest of the case statements)
>	A break usually replaces the goto in that type of code.

For the benefit of anyone who might have been misled by that response,
I should point out that bkottman completely misread the code.  Those
particular gotos could not have been omitted unless the code were
substantially rearranged, and the age of the code has nothing to do
with it.



More information about the Comp.lang.c mailing list