Interesting BASIC buglet
Steve Drain (222) 1620 posts |
I thought I would post this because it is the first time I have encountered it in 3 decades of using BASIC. You cannnot put a The reason is clear: when the No doubt nemo has it on his list. ;-) Edit. Of course, you cannot put any statement after them, it was just that the |
Kevin (224) 322 posts |
It kind of make senese as you could have in the DATA line REMEMBER etc |
Steve Drain (222) 1620 posts |
Ah! The point is that |
Clive Semmens (2335) 3276 posts |
It doesn’t cause any loss of functionality, so in a sense the only bug is that the restriction is not mentioned on the |
Steve Drain (222) 1620 posts |
I would think that the use of |
Stuart Painting (5389) 714 posts |
A program tokenised by a new interpreter (and distributed as a &FFB file) should run on the old interpreter. What would fail is if the user were to edit it using the old interpreter. This may be a distinction without a difference, of course… |
Steve Pampling (1551) 8170 posts |
Small incompatibilities creep in with various updates – I’m pretty sure I mentioned the issue with compiler / macro features which mean that current source (at least the version where I last tried) doesn’t build a complete ROM unless you have a compiler version newer than v24. It happens. I wouldn’t even know about that “quirk” if I’d updated my DDE. |
Rick Murray (539) 13840 posts |
You mean like Just two examples that come to mind. ;-) |
Steve Fryatt (216) 2105 posts |
The issue is in the tokeniser, not the interpreter. I know this, because I remember adding a special case to Tokenize to handle it; the same is applied to The BASIC tokeniser is quite “tight”, and applies a number of “optimisations”, presumably in a quest for speed and compactness. Fiddling with it also has the potential to invoke the law of unintended consequences, as those who worked on That said, I did wonder (on my way back from the pub, so you’ve been warned), whether we could use the fact that the
is in a “left context”, while the
is in a “right context” (because Is anyone feeling brave? :-) |