On Mon, 16 May 2005, Sean 'Captain Napalm' Conner wrote:
2. State machines. It keeps me sane. This is my
biggest use of
GOTOs. My HTML parser has 22 GOTOs (22 states) and without the use
of GOTOs, the code would probably be more of a mess than it already
is.
I always use a SWITCH construct inside a loop to accomplish this sort of
thing.
-spc (I do tend though, to use multiple returns in a
function ... )
Me too. I see no problem with that.
(As long as you properly clean up on your way out.)
--
Sellam Ismail Vintage Computer Festival
------------------------------------------------------------------------------
International Man of Intrigue and Danger
http://www.vintage.org
[ Old computing resources for business || Buy/Sell/Trade Vintage Computers ]
[ and academia at
www.VintageTech.com || at
http://marketplace.vintage.org ]