11-19-2023, 09:01 PM
To be able to use a variable name like "1a" we would all have to use "LET" again. Obligatorily.
It's simply because the earliest versions of BASIC supported line numbers! Yes remember that? Couldn't have a program in GW-BASIC for example without line numbers. And in an 8-bit computer like my Radio Shack TRS-80 Color Computer 2, "1a=3" would be broken down to:
The earliest BASIC's on 8-bit computers allowed almost all spaces omitted when composing programs because a space actually took up room in memory, and back then those computers had to work with 16KB or less RAM.
Oh well C and Lua and many other programming languages also don't permit numerals to begin a variable name, for other reasons.
Dimster why do you want to have a variable like "1a" anyway?
It's simply because the earliest versions of BASIC supported line numbers! Yes remember that? Couldn't have a program in GW-BASIC for example without line numbers. And in an 8-bit computer like my Radio Shack TRS-80 Color Computer 2, "1a=3" would be broken down to:
Code: (Select All)
1 a = 3
The earliest BASIC's on 8-bit computers allowed almost all spaces omitted when composing programs because a space actually took up room in memory, and back then those computers had to work with 16KB or less RAM.
Oh well C and Lua and many other programming languages also don't permit numerals to begin a variable name, for other reasons.
Dimster why do you want to have a variable like "1a" anyway?