philmasterplus
Active member
Tested with r8651. A number preceded by a negative sign causes an error when it is followed by any operator. I was able to bypass this issue by wrapping an additional pair of parentheses around the offending negative number.
Now the question is...will it be
1) fixed, because...perfection!
2) not fixed, because low priority/easy to bypass/etc?
If the answer is (2), I could add it to the "Tips & Tricks & Workarounds" page on the mafia wiki.
p.s. I appreciate how the devs have created a full-blown programming language and interpreter for such a (relatively) small group of people. How long did it took to make it release-worthy in the first place?
PHP:
int a = -12 / 7; //Error: Expected ;, found / (negativetest.ash, line 1)
int b = (-12 / 7); //Error: Expected ), found / (negativetest.ash, line 2)
int c = (-12) / 7; //OK
int g = (- 12) / 7; //OK
int d = -(12 / 7); //OK
int e = - 12; //OK
int f = - 12 + 1; //Expected ;, found + (negativetest.ash, line 7)
Now the question is...will it be
1) fixed, because...perfection!
2) not fixed, because low priority/easy to bypass/etc?
If the answer is (2), I could add it to the "Tips & Tricks & Workarounds" page on the mafia wiki.
p.s. I appreciate how the devs have created a full-blown programming language and interpreter for such a (relatively) small group of people. How long did it took to make it release-worthy in the first place?