Path: utzoo!mnetor!uunet!ncc!alberta!att-ih!ttrdc!levy From: levy@ttrdc.UUCP (Daniel R. Levy) Newsgroups: comp.lang.c Subject: Re: gotos Message-ID: <2580@ttrdc.UUCP> Date: 14 Apr 88 00:50:10 GMT References: <1988Apr8.183815.3187@utzoo.uucp>, <449@goofy.megatest.UUCP> <748@l.cc.purdue.edu> Organization: AT&T, Skokie, IL Lines: 20 Summary: gak In article <748@l.cc.purdue.edu>, cik@l.cc.purdue.edu (Herman Rubin) writes: # # Here is a challenge to the denigrators of goto. I present a short fragment of # code; this code should be modified if right shifts are negative left shifts, # but the problems are the same. # # Case 5: b >>= g16; # m |= b; # x = *(--geom); # if (TEST) # {if(ODD(x)) goto Case2; else goto Case1;}; # else {g4 = (x+1)/2; if(ODD(x)) goto Case3; else goto Case4;}; Gak, what IS this? Where are the Case[1-4] labels even? This IS raunchy code. (Are you trying to hand-code a state machine?) -- |------------Dan Levy------------| Path: ..!{akgua,homxb,ihnp4,ltuxa,mvuxa, | an Engihacker @ | }!ttrdc!ttrda!levy | AT&T Data Systems Group | Disclaimer? Huh? What disclaimer??? |--------Skokie, Illinois--------|