'goto" gone from computer languages or is it!
der Mouse
mouse at Rodents.Montreal.QC.CA
Thu May 12 22:34:52 CDT 2005
> 'goto' is still very much alive : only they call it throwing an
> exception these days.
Disgaree.
if (index(s,'/'))
{
... process ...
if (! index(s,'*'))
{
... compute new pointer and store it in is ...
goto no_slash_after_all;
}
} else {
... process ...
no_slash_after_all:
... more processing ...
}
A certain kind of goto usage turns into throwing an exception, perhaps.
But that doesn't mean that goto is alive and well, any more than some
uses of punched cards being replacable with magnetic disks means that
punched cards are alive and well.
/~\ The ASCII der Mouse
\ / Ribbon Campaign
X Against HTML mouse at rodents.montreal.qc.ca
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B
More information about the cctalk
mailing list