Viewing a single comment thread. View all comments

Megalocerus t1_iyb9mpc wrote

In COBOL the goto didn't even have to specify the destination. You could do an ALTER and have it go somewhere else. Try reading that.

GOTOs are bad but ALTER is Satanic.

15

carlovski99 t1_iyc60gq wrote

2

Megalocerus t1_iydadd3 wrote

Yes, that's far worse, but I never encountered that in real code. The rules for using alter were:

  1. Don't use it.

  2. If you use it, have any GOTO referenced by it leave off the destination in code. Thus, it was just GOTO. by itself on the line with a period, to clue the programmer it was a trap.

1

Existing-Metal-5211 t1_iydidtc wrote

Naw... I did some stuff like that in basic by poking the basic code with destination. I cannot recall why I didn't use on goto for that project tho.

1