-
Notifications
You must be signed in to change notification settings - Fork 14
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
strange behavior of colon operator #12
Labels
Comments
No this is a bug. It needs more testing. Maybe always one element is ommited at the end? |
kollokollo
added a commit
that referenced
this issue
Oct 8, 2020
kollokollo
added a commit
that referenced
this issue
Oct 8, 2020
kollokollo
added a commit
that referenced
this issue
Oct 28, 2020
kollokollo
added a commit
that referenced
this issue
Jan 2, 2021
kollokollo
added a commit
that referenced
this issue
Jan 18, 2021
kollokollo
added a commit
that referenced
this issue
Mar 4, 2021
The issue is not yet solved. However, now there will be an error message: ERROR at line 2: Array dimensioning mismatch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I fear there might be something wrong with the colon operator for arrays:
foo() = [1,2,3]
dim b(3)
b(0:1)=foo(1:2)
I expect
print b(1)
to be 2 andprint b(0)
to be 1.Another experiment:
d()= foo(1:2)
I think print
d(0)
should be 1.What is going on? Am I doing something wrong?
The text was updated successfully, but these errors were encountered: