4 ms·
Structured programming was not easy. You didn't have functions, you had GOSUB to a line number, which was just a slightly glorified GOTO. There was one global
by SoftTalker 3y ago
Structured programming was not easy.
You didn't have functions, you had GOSUB to a line number, which was just a slightly glorified GOTO. There was one global scope.
- bartread 3y agoThat depends a lot on the implementation. Global scope certainly wasn’t the only scope for all of them: dialects such as AMOS on the Amiga had procedure level scope as well. BBC BASIC definitely had DEF PROC but I can’t remember whether it supported different levels of scope.
- pjmlp 3y agoYeah, if you ignore the BASIC dialects that actually provided such features.
- jhbadger 3y agoWhich were created decades after the original versions and are only identifiable as "BASIC" in that they share a few keywords like PRINT and FOR...NEXT. The later "structured BASIC" dialects resemble more COMAL than traditional BASIC. https://en.wikipedia.org/wiki/COMAL https://en.wikipedia.org/wiki/COMAL
- pjmlp 3y agoAgain, ignoring mainframes during the 1970's.