DATA command, did I find a bug or a feature

From: Baltissen, GJPAA (Ruud) <"Baltissen,>
Date: Thu, 9 Sep 2021 08:15:43 +0000
Message-ID: <AM6PR10MB236001BBDE6C58533492CE7AE1D59_at_AM6PR10MB2360.EURPRD10.PROD.OUTLOOK.COM>
Hallo allemaal,

I'm busy writing my own OS and BASIC meant to run on my Commodore PC20-III and written in ML. Checking the behavior of DATA and READ on my C64 I ran into this:

1 data 1,2,
2 data 3,4
3 read a,b,c,d
4 print a,b,c,d
run
1    2    0    3

Notice the sole comma at the end of line 1. I more or less expected an error during the run because no data can be found after that comma but you can see the result. I thought to be smart and to run this little program on an IBM 5150 but with the same result. Then it struck that CBM BASIC was written by Microsoft as well. And I don't have other machines (or even an emulator) at hand where I could test this.

My question: did I run into a bug or is this supposed to happen?


With kind regards / met vriendelijke groet, Ruud Baltissen

http://www.baltissen.org<http://www.baltissen.org/>






De informatie in dit e-mailbericht is vertrouwelijk en uitsluitend bestemd voor de
geadresseerde. Wanneer u dit bericht per abuis ontvangt, verzoeken wij u contact op te
nemen met de afzender per kerende e-mail. Verder verzoeken wij u in dat geval dit
e-mailbericht te vernietigen en de inhoud ervan aan niemand openbaar te maken.
Wij aanvaarden geen aansprakelijkheid voor onjuiste, onvolledige dan wel ontijdige
overbrenging van de inhoud van een verzonden e-mailbericht, noch voor daarbij
overgebrachte virussen.

APG Groep N.V. is gevestigd te Heerlen en is ingeschreven in het
handelsregister van de Kamer van Koophandel Limburg onder nummer 14099617


The information contained in this e-mail is confidential and may be privileged.
It may be read, copied and used only by the intended recipient.
If you have received it in error, please contact the sender immediately by
return e-mail; please delete in this case the e-mail and do not disclose its
contents to any person. We don't accept liability for any errors, omissions,
delays of receipt or viruses in the contents of this message which arise as a
result of e-mail transmission.

APG Groep N.V. is registered in the trade register of the Chamber
of Commerce Limburg, The Netherlands, registration number: 14099617
Received on 2021-09-09 11:00:02

Archive generated by hypermail 2.3.0.