Originally my inbox
I'm still looking, but I did just find a reference where a programmer
used goto in several spots to avoid calling a subroutine in the code.
Basically goto was used in several "case" statements to have
execution fall through to right after the cast statement -- kind of a
way of building in multiple "default" statements.
case 'd':
base = 10;
goto pnum;
case 'x':
base = 16;
goto pnum;
case 'b':
base = 2;
goto pnum;
case 'o':
base = 8;
pnum:
/* program continues */
I'm not sure if this is what I was referring to (I don't think it
is), so I'll keep looking.
DAN
>You said in volume two this
>----
> Most C language books don't teach anything about the goto, other
>than a passing mention. One programmer, however, set out to find
>virtue for the vilified goto. He conccted a program that used a goto
>and could not be written any other way. Keep in mind that this guy
>was a top-notch C programmer and he had to work at it to get a
>justifiable goto program. For us mere mortals, this isn't an option.
>----
>At cprogramming.com we were wonder, could you send us the source to
>the program in mention? Thanks a lot.
>
>_______________________________________________
>Eliminate pop-ups before they appear!
>Visit
www.PopSwatter.com now - It's FREE.
--
Cheers!
DAN