Date : Thu, 03 Nov 2011 19:55:19 +0000 (GMT)
From : kranser@... (Steve Fewell)
Subject: BBC Basic Curiosity
I also had to try it to see what it does! Anyway, the restore pointers in
BASIC 1/2 do not point to the end of the program - they point to the start
of line 30 - and the READ command searches for the next comma or line break
before reading the data - nothing to do with the HEAP!
Steve.
From: Rob <robert@...>
I had to try it, and, "Ooh how odd!"? I didn't expect that. (I won't
spoil it for everyone else by reporting exactly what happens!)
Basic 4, on a Master, reports the error "Out of DATA" which is exactly
what I would have expected.? No definite answer as to why it behaves
as it does on older versions but I'd think it must be something to do
with the pointers being left by the RESTORE command pointing to the
end of programme (and thus, the start of the heap) after it's tracked
through looking for a DATA line - omit that and it behaves as it
should.