Re:The Worst Programming Environment in the World?
by Someone on Sunday September 01, 2013 @06:04PM
(#6312351)
That did not save a byte. Commodore Basic did not store source code; it stored tokenized source code, with 'print' taking a single byte (http://www.c64-wiki.com/index.php/BASIC_token)
[ Parent
| on HN ]
Re:The Worst Programming Environment in the World?
by chipotle_coyote on Sunday September 01, 2013 @09:36PM
(#6313015)
While it's been a long long time since I've used it, I think that was not the case for TRS-80 Level I BASIC -- it didn't tokenize, so shorthand saved actual memory. And not using spaces saved bytes. Apropos of the conversation on variables, Level I BASIC only allowed one-character variable names: you had 26 integer variables named A-Z, two (yes, two) string variables, A$ and B$, and only one array variable, A().
It also had only three error messages: "WHAT?" (any syntax-related problem), "HOW?" (any execution error that wasn't syntax-related, like division by zero), and "SORRY" (out of memory).
Re:The Worst Programming Environment in the World?
by mgkimsal on Sunday September 01, 2013 @09:15PM
(#6312961)
? was still handy because on the C64 there was a 2 screen line max when entering a program line. So you could get a longer line in by using
10 ?"hello whatever..."
which would be expanded to
10 PRINT "hello whatever..."
Line numbers counted too, IIRC, so it was more important when you had 4 and 5 digit line numbers.
But it's been 25 years since I did any commodore basic - my memory might be a bit wrong on this...