gotos
Gary M. Samuelson
garys at bunker.UUCP
Sat Apr 16 08:42:50 AEST 1988
In article <748 at l.cc.purdue.edu> cik at l.cc.purdue.edu (Herman Rubin) writes:
>
>Here is a challenge to the denigrators of goto.
I am not sure I qualify, absolutely, but how about:
Case 5: b >>= g16;
m |= b;
x = *(--geom);
if (TEST)
{
if(ODD(x))
Case2();
else
Case1();
}
else
{
g4 = (x+1)/2;
if(ODD(x))
Case3();
else
Case4();
}
Readability improved through indentation at no extra charge.
Extraneous semi-colons tossed also. And, yes, I normally do
such things when I have to deal with ugly code.
Now give me something hard.
Gary Samuelson
More information about the Comp.lang.c
mailing list