Page 1 of 1

[HD Pg 168, Sec. 5.1.5 - curious-case-of-unary-increment-decrement-and-compound-assignment-operators]

Posted: Fri Feb 08, 2019 3:25 pm
by Username987654
To put it simply, the rules of numeric promotion do not apply to ++, - and the compound assignment operators
should be
To put it simply, the rules of numeric promotion do not apply to ++, -- and the compound assignment operators
? ( - should be -- ?)

Re: [HD Pg 168, Sec. 5.1.5 - curious-case-of-unary-increment-decrement-and-compound-assignment-operators]

Posted: Sat Feb 09, 2019 2:49 am
by admin
I do see it as -- (and not just -) in pdf as well as in kindle. I remember you reported a similar error earlier also. Could you please tell me which version (i.e. kindle, pdf, or paper) are you seeing this error in, so that I can find out what is causing it.

thank you,
Paul.

Re: [HD Pg 168, Sec. 5.1.5 - curious-case-of-unary-increment-decrement-and-compound-assignment-operators]

Posted: Sat Feb 09, 2019 11:28 am
by Username987654
PDF: (Review Copy) Wednesday 25th July, 2018 Build 1.0
Specifically, I'm using Adobe Acrobat X Pro(attached) and FoxIt Reader Version: 9.2.0.9297
CuriousCaseOfUnaryDecrement.PNG
CuriousCaseOfUnaryDecrement.PNG (54.98 KiB) Viewed 3284 times
Thanks Paul.

Re: [HD Pg 168, Sec. 5.1.5 - curious-case-of-unary-increment-decrement-and-compound-assignment-operators]

Posted: Sat Feb 09, 2019 11:34 am
by admin
OK, got it. In the first few builds, two dashes were getting coalesced into a single dash automatically. It was an issue with the build process, which was fixed quite a while back.

Please download the most recent version from https://enthuware.com/index.php/compone ... Itemid=691

HTH,
Paul.

Re: [HD Pg 168, Sec. 5.1.5 - curious-case-of-unary-increment-decrement-and-compound-assignment-operators]

Posted: Sat Feb 09, 2019 12:28 pm
by Username987654
Thanks Paul!

FYI: The download failed for me (7 times citing "Failed - Network error" in my Windows 10 download status bar) using Google Chrome Version 72.0.3626.96 (Official Build) (64-bit). It downloaded for me, the very first time, using FIrefox Quantum 65.0 (64-bit).

Re: [HD Pg 168, Sec. 5.1.5 - curious-case-of-unary-increment-decrement-and-compound-assignment-operators]

Posted: Sat Feb 09, 2019 10:15 pm
by admin
Not sure why that is but I am using chrome as well and it worked fine.
test1.png
test1.png (58.33 KiB) Viewed 3275 times

Re: [HD Pg 168, Sec. 5.1.5 - curious-case-of-unary-increment-decrement-and-compound-assignment-operators]

Posted: Sun Feb 10, 2019 12:50 am
by Username987654
I was able to get to the place that you are illustrating just fine. The download failed for me 7 times citing "Failed - Network error" beside the failed download, in my Windows 10 download status bar) using Google Chrome Version 72.0.3626.96 (Official Build) (64-bit).

(I was able to download using Firefox. I just wanted you to know so that you could get ahead of this for the next person.)

Re: [HD Pg 168, Sec. 5.1.5 - curious-case-of-unary-increment-decrement-and-compound-assignment-operators]

Posted: Sun Feb 10, 2019 1:39 am
by admin
ok, sure. I will have this investigated.
thanks for letting us know.
Paul.

Re: [HD Pg 168, Sec. 5.1.5 - curious-case-of-unary-increment-decrement-and-compound-assignment-operators]

Posted: Sun Feb 10, 2019 10:01 am
by Username987654
Thanks for all you do Paul.

Re: [HD Pg 168, Sec. 5.1.5 - curious-case-of-unary-increment-decrement-and-compound-assignment-operators]

Posted: Wed Jul 21, 2021 11:55 am
by enthunoob
"I guess, convenience superseded that argument in this case :)"

The explanations are great, but really... All these exceptions make the design of Java so inconsistent, and therefor annoying to learn. It's the same with the ability of the compiler to see if a local variable is assigned a value within an if statement, or even an nested if or switch-default block.. Seems smart design, but is actually just inconsistent imo.