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

RUN statement should reset context #9

Open
jomag opened this issue Sep 18, 2019 · 0 comments
Open

RUN statement should reset context #9

jomag opened this issue Sep 18, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@jomag
Copy link
Owner

jomag commented Sep 18, 2019

Most (all?) interpreters/dialects reset the context completely when the RUN statement is issued. So this would produce an error, as X is not declared:

x=5
10 PRINT x

Note that the state is kept after a program has ended:

x=0
10 x=8
RUN
PRINT x
8
@jomag jomag added the bug Something isn't working label Oct 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant