OH NO!! (Re: Standard Indentation etc.)

John Hascall hascall at atanasoff.cs.iastate.edu
Sat Jan 14 04:11:34 AEST 1989


In article <828 at wsccs.UUCP> wes at wsccs.UUCP (Barnacle Wes) writes:
>From article <952 at ardent.UUCP), by mec at outcast.ardent.com (Michael Chastain):
>) OK, here's my favorite switch statement:

   ...start of switch omitted....

>) 	case 1:
>) 		stmt;
>) 		goto LCase2;
>) 	case 2:
>) 	LCase2:
>) 		stmt;
>In article <1098 at goofy.megatest.UUCP>, djones at megatest.UUCP (Dave Jones) writes:
>How 'bout a USELESS GOTO ALERT!  If you remove the lines
>) 		goto LCase2;
>and
>) 	LCase2:
>
>the code does the same thing!  Whoever wrote this mess needs to get a job
>he/she/it can actually handle.


    Calm down.  Perhaps he was just being safe (i.e., in case someone was
    to later insert another case-label between case1 and case2).


    John Hascall
    ISU Comp Center



More information about the Comp.lang.c mailing list