08-27-2022, 09:10 PM
(08-27-2022, 09:05 PM)TempodiBasic Wrote: @SmcNeill
LOL I must think that it is your work the GOTO in mid2asc.c posted by MadSciJr!
I know that it is possible to use GOTO in C, but never seen before this time.
Used to see it a lot in older code. One place in particular where I recall seeing it a ton was with ON ERROR routines:
Code: (Select All)
ON ERROR GOSUB foo
GOTO skipfoo
foo:
PRINT "ERROR! ERROR, YOU IDIOT!!
RESUME
skipfoo:
Folks would tend to put their error handler close to the ON ERROR statement, but you didn't want it to execute with the main program code, so it tended to get wrapped in a GOTO and a label after it to make certain that it was never executed except when an error called it directly. I recall seeing that setup in a TON of old QBASIC type routines which did error trapping.