charly icon indicating copy to clipboard operation
charly copied to clipboard

AND assignment for bitwise operators

Open KCreate opened this issue 8 years ago • 2 comments

Implement the following AND assignment operators:

&=   // AND assignment
|=   // OR assignment
^=   // XOR assignment
<<=  // left-shift assignment
>>=  // right-shift assignment

KCreate avatar Mar 15 '17 21:03 KCreate

Any examples of how to implement this in the compiler?

daniel-Q6wUOI avatar Dec 12 '17 20:12 daniel-Q6wUOI

Just like any other operator. In a bytecode-VM it's just another opcode.

KCreate avatar Dec 12 '17 20:12 KCreate