[Coco] BASIC09 error handling schema?

James Jones jejones3141 at gmail.com
Sun Jun 3 13:16:24 EDT 2018


BASIC09 still has some unfortunate characteristics for backwards
compatibility with less-structured BASICs, and one of them is ON ERROR GOTO.

Is this a reasonable schema to give error handling some kind of structure?
(I don't know how BASIC09/RunB handle errors--I'd like to think that it
sets up an error handler once and for all at the top and just remembers
where it's been told to go on error (or that it hasn't been told, so it
does its default action.)

            ON ERROR GOTO <line #>
           <statement which may cause error>
            IF FALSE THEN
<line #>    <code to handle error>
            ENDIF
            ON ERROR


More information about the Coco mailing list