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

surprising precedence: base ** exponent :guard #208

Open
dckc opened this issue Mar 11, 2019 · 0 comments
Open

surprising precedence: base ** exponent :guard #208

dckc opened this issue Mar 11, 2019 · 0 comments

Comments

@dckc
Copy link
Member

dckc commented Mar 11, 2019

▲> def Int32 :DeepFrozen := -(2 ** 31)..!2 ** 31
Result: <[-2147483648, 2147483648) Int region>
▲> 2**50 :Int32
Result: 1125899906842624

WAT?!

oh...

▲> m`base ** exponent :guard`.expand()
Result: m`base.pow(guard.coerce(exponent, throw))`
@dckc dckc changed the title surprising precedence: mbase ** exponent :guard.expand() surprising precedence: base ** exponent :guard Mar 11, 2019
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