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

OPTION BASE should be allowed after ERASEing all arrays #185

Closed
robhagemans opened this issue Jun 22, 2022 · 5 comments
Closed

OPTION BASE should be allowed after ERASEing all arrays #185

robhagemans opened this issue Jun 22, 2022 · 5 comments
Assignees
Labels

Comments

@robhagemans
Copy link
Owner

Test code:

DIM Y%(4)
OPTION BASE 1
ERASE Y%
OPTION BASE 1    

What happens:

Duplicate Definition
Ok
Duplicate Definition
Ok

What should happen:

Duplicate Definition
Ok
Ok

Background - OPTION BASE should fail with Duplicate Definition if there are allocated arrays. However, if all arrays have been ERASEd it should be allowed. PC-BASIC disallows it if at any point an array has been allocated

@robhagemans robhagemans self-assigned this Jun 22, 2022
@rbergen
Copy link
Contributor

rbergen commented Jun 23, 2022

Wow, I'd put this in the "rather obscure" category, for sure. I can't help wondering how on earth you found this one. :)

@robhagemans
Copy link
Owner Author

As almost always, by accident... Though in the context of issue #182 it's not quite so random.

@rbergen
Copy link
Contributor

rbergen commented Jun 23, 2022

I had missed #182. But yes, I do see the connection now.

@robhagemans
Copy link
Owner Author

Fixed by commit e261100

@robhagemans
Copy link
Owner Author

robhagemans commented Oct 11, 2022 via email

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

No branches or pull requests

2 participants