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

return in logical function not working with all opcodes #317

Open
MiranDMC opened this issue Apr 13, 2024 · 1 comment
Open

return in logical function not working with all opcodes #317

MiranDMC opened this issue Apr 13, 2024 · 1 comment
Labels
priority:p2 Medium priority scope:compiler type:feature New feature or request
Milestone

Comments

@MiranDMC
Copy link

MiranDMC commented Apr 13, 2024

Currently in logical functions we are allowed to do:
return val == 4
where I guess the expression is executed setting condition result then function is exited with 0AB2 opcode.

Trying to do very similar thing:
return not is_bit_set {number} flags {bitIndex} 1
results in compilation error.

@x87 x87 added type:feature New feature or request priority:p2 Medium priority scope:compiler labels Apr 13, 2024
@MiranDMC
Copy link
Author

MiranDMC commented Apr 13, 2024

By the way it is worth consider of using new is_truthy opcode for code like return value inside logical functions.

@x87 x87 added this to the v4.1.0 milestone Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority:p2 Medium priority scope:compiler type:feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants