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

precedence in binary operators is wrong #16

Open
darrenmothersele opened this issue May 30, 2014 · 1 comment
Open

precedence in binary operators is wrong #16

darrenmothersele opened this issue May 30, 2014 · 1 comment

Comments

@darrenmothersele
Copy link
Member

I would expect the following to draw a box:

x: 0
y: 1
if x > 0 | y > 0
  box
end

@darrenmothersele
Copy link
Member Author

It does not because the precedence between the ">" and "|" operators is incorrect. If you add parentheses it evaluates correctly, i.e.

x: 0
y: 1
if (x > 0) | (y > 0)
  box
end

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

1 participant