charly
charly copied to clipboard
AND assignment for bitwise operators
Implement the following AND assignment operators:
&= // AND assignment
|= // OR assignment
^= // XOR assignment
<<= // left-shift assignment
>>= // right-shift assignment
Any examples of how to implement this in the compiler?
Just like any other operator. In a bytecode-VM it's just another opcode.