-
Notifications
You must be signed in to change notification settings - Fork 8
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
If X at 0 is "a"
behaves differently from Satriani
#36
Comments
Real code that showed this bug: https://gitlab.astro.rug.nl/buddel/adventofcode/-/blob/master/2021/rockstar/day08/battle.rocks This is a function I want to use in a larger program, put in a different file for debugging / future unit testing, copied into the main program.
Rocky, which shows the desired behavior:
Satriani:
Oops (another bug?). Replacing the
|
Opened an issue in Rockstar for this, it's an operator precedence issue, But as I said, arrays are not yet 100% in Rocky (indexing will not change, though, only array comparison and the rock/roll operations), |
Thanks, linking it here RockstarLang/rockstar#296 As for the second issue I'll just do |
The following program behaves differently in Rocky and in Satriani:
Rocky gives True and Satriani gives False.
Switching the order (
If "a" is X at 0
) does result in True in both interpreters. (However, in my code I haveat
keywords at both sides of the equality.) I'll simply put theX at 0
in a variable first.The text was updated successfully, but these errors were encountered: