dev icon indicating copy to clipboard operation
dev copied to clipboard

return in logical function not working with all opcodes

Open MiranDMC opened this issue 10 months ago • 1 comments

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.

MiranDMC avatar Apr 13 '24 02:04 MiranDMC

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

MiranDMC avatar Apr 13 '24 07:04 MiranDMC