foo++;
++foo;
foo*=10;
foo|=15; // foo=foo|15 bitwise OR
foo^=7; // foo=foo^7 bitwise AND
foo<<=3; // foo=foo<<3
foo>>=3;
...
Noticing that there are no bitwise and, or, xor,
I'd suggest to add those too, in both their
monadic and duadic form.
Monadische Scriptoperatoren
Moderator: Martin
Re: Monadische Scriptoperatoren
2nd this request. Bitwise AND, OR, XOR and shift <</>> would be useful.
For the time being looks like I have to do the math in a loop to achieve this.
For the time being looks like I have to do the math in a loop to achieve this.