Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic: read out of data issue #255

Open
cjacker opened this issue Jun 27, 2022 · 1 comment
Open

Basic: read out of data issue #255

cjacker opened this issue Jun 27, 2022 · 1 comment

Comments

@cjacker
Copy link

cjacker commented Jun 27, 2022

Consider below basic code:

' test.bas
10 read x
20 read y
30 data 2, 3
40 print x, y

Build with:

ack -O test.bas -o test
./test

the output is:

LINE 20:ERROR 2: Out of data

expect output should be:

2 3
@davidgiven
Copy link
Owner

Gosh, the Basic compiler! That's... obscure...

The Basic dialect is pretty weird. Looking at the documentation (http://tack.sourceforge.net/olddocs/basic.html#2.3.%20DATA) it appears that DATA values are written to an external file which then needs to be accessible at run time --- is it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants