Den 2021-09-09 kl. 10:15, skrev Baltissen, GJPAA (Ruud): > Notice the sole comma at the end of line 1. [..]did I run into a bug > or is this supposed to happen? From what I know, that is by design. A lot of programs have DATA statements in this form: 10 DATA 128,,,,,,,128 in order to save space, knowing that reading no value is evaluated to zero. I can't speak for every possible BASIC dialect but most probably all Microsoft based ones work in this way. David A. Lien doesn't mention either or in his BASIC Handbook, so it might be implemention specific. It means you would have to decide if your own Ruud BASIC should mimic the Microsoft behavior or something else. The same goes for a lot of things, i.e. variables and string handling. If you were planning to implement LEFT$, MID$ etc, you have chosen the Microsoft path anyway and in that case it makes sense to make your language as close to it as possible. If you use some other string handling scheme like Atari or Sinclair, or egen SEG$ like I believe TI used, you would not seem like Microsoft anymore. All these different details have their pros and cons, so it is not to say that one is better than the rest. Good luck! Anders CarlssonReceived on 2021-09-09 11:02:32
Archive generated by hypermail 2.3.0.