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

Operator precedence #296

Open
gaborsch opened this issue Dec 10, 2021 · 0 comments
Open

Operator precedence #296

gaborsch opened this issue Dec 10, 2021 · 0 comments
Milestone

Comments

@gaborsch
Copy link

It seems like array indexing has lower precedence than it should be, I expect both of the following two expressions to evaluate to true.

The spec does not say anything about it, I expect that it should be the highest (higher than function calls), so we can pass indexed array values to functions.

X is "abc"
Shatter X

If X at 0 is "a"
Say "True"
Else
Say "False"

If "a" is X at 0
Say "True"
Else
Say "False"

Satriani Returns:

False
True

(Thanks to @hugobuddel)

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