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

Array index can be omitted in cases where it's actually needed #216

Open
flukiluke opened this issue Jan 6, 2022 · 2 comments
Open

Array index can be omitted in cases where it's actually needed #216

flukiluke opened this issue Jan 6, 2022 · 2 comments

Comments

@flukiluke
Copy link
Contributor

This should generate an error about no array index, yet is accepted:

Dim b(4)
b() = 100

The runtime behaviour is as-if the index were 0 - which is clearly a side-effect rather than a desired behaviour.

@aouwt
Copy link
Contributor

aouwt commented Jan 6, 2022

I would like to mention a bug i found a while ago but forgot to make a report, and i think its relevant here:

When you do Array1() = Array2(), it throws no errors and you are led to think that it sets Array1() to the contents of Array2(), but this is not the case.

FellippeHeitor added a commit that referenced this issue Mar 2, 2022
@FellippeHeitor
Copy link
Contributor

Rabbit hole goes way deeper.

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

3 participants