Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
sumtechguy
on Jan 13, 2025
|
parent
|
context
|
favorite
| on:
Can you complete the Oregon Trail if you wait at a...
Also some of that older stuff it can be the compiler only let you have 8 chars for a variable name.
bluedino
on Jan 13, 2025
[–]
Applesoft 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%20P...
classichasclass
on Jan 13, 2025
|
parent
|
next
[–]
This is generally true of most 6502 Microsoft BASIC derivatives, Apple and Commodore included.
Mountain_Skies
on Jan 13, 2025
|
parent
|
prev
[–]
That 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.
sedatk
on Jan 13, 2025
|
root
|
parent
|
next
[–]
Amstrad CPC's Locomotive BASIC supported up to 40 character variable names with no trimming.
nubinetwork
on Jan 13, 2025
|
root
|
parent
|
prev
[–]
Pretty sure the c64 did the same thing...
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: