Authored by: argee on Sunday, May 20 2012 @ 03:48 PM EDT |
There is also CONTINUE which is a place
marker you can GOTO or GOSUB to, or RETURN to.
It allows for easier editing/bypassing/debugging.
We are speaking of MS BASIC here, with line numbers.
Not all BASICS had line numbers.
Ah! The days of the Altair 8800. I have three of them
still, and one IMSAI 8080. Basic, Assembler, dBase II,
VEDIT, etc. CP/M 2.2, Altair DOS, Altair BASIC. Heady
days, those!
---
--
argee[ Reply to This | Parent | # ]
|
|
Authored by: Wol on Sunday, May 20 2012 @ 04:47 PM EDT |
The other thing I've used (which was actually very useful) was the longjmp()
function in PL/I (the Pr1me version - I think called plp).
Really meant for error handling. I can't remember the name of the setup function
but it stuffed a "come to" marker on the stack. Then if you hit an
error, you could longjmp() to the marker and it would unwind the stack, exiting
all the intervening subroutines you'd called. If you forgot (or messed up) to
set up the "come to", the stack would unwind all the way and the
program would crash.
But as I say, a VERY useful trick for handling errors. I've not really
programmed with OO languages and exceptions, but I think the PL/I way of doing
it was much better - it permeated Primos in the versions I was used to, and I
found it very easy to use.
Cheers,
Wol[ Reply to This | Parent | # ]
|
|
|
|