3 ms·
Also some of that older stuff it can be the compiler only let you have 8 chars for a variable name.
by sumtechguy 2y ago
Also some of that older stuff it can be the compiler only let you have 8 chars for a variable name.
- bluedino 2y agoApplesoft BASIC only uses the first two characters (!) to distinguish one variable name from another. WAGON and WATER would be the same. (page 7) https://mirrors.apple2.org.za/Apple%20II%20Documentation%20Project/Software/Languages/Applesoft%20BASIC/Manuals/Applesoft%20II%20BASIC%20Programming%20Reference%20Manual.pdf https://mirrors.apple2.org.za/Apple%20II%20Documentation%20P...
- Mountain_Skies 2y agoThat was true of most BASIC dialects of that era. Many hard to track down bugs were introduced when programmers didn't understand this and had WATER overwrite WAGON.
- nubinetwork 2y agoPretty sure the c64 did the same thing...
- sedatk 2y agoAmstrad CPC's Locomotive BASIC supported up to 40 character variable names with no trimming.
- classichasclass 2y agoThis is generally true of most 6502 Microsoft BASIC derivatives, Apple and Commodore included.