Re: Parrot and the ++ and -- operators

2017-02-12 Thread Mauro Zallocco
Hi all. I tried this: groovy -version Groovy Version: 2.4.6 JVM: 1.8.0_66 Vendor: Oracle Corporation OS: Windows 7 int i = 0 ++(++(++i)); assert i == 1 However with C++, it gives 3. #include int main() { int i = 0; ++(++(++i)); assert(i==3); return 0; } I think 3 is correct. True?

Re: Parrot and the ++ and -- operators

2017-02-12 Thread Roman Shaposhnik
Well, for better of for worse this is the Groovy behavior as of today (sorry for quoting myself -- but the thread there is interesting): https://twitter.com/rhatr/status/824033519684829185 Personally I find it surprising. Thanks, Roman. On Sun, Feb 12, 2017 at 7:11 AM, Mauro Zallocco wrot