sannybuilder / dev

Sanny Builder Bug Tracker and Roadmap development
https://sannybuilder.com
44 stars 0 forks source link

return in logical function not working with all opcodes #317

Open MiranDMC opened 2 months ago

MiranDMC commented 2 months ago

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 commented 2 months ago

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