Winston Gutkowski wrote:...so some sort of evaluation is needed to make sure that the type of rvalue is correct.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Roel De Nijs wrote: This code snippet prints 51. Because it's evaluated as 6 (++i), 5 (--i) * 9 (--j) and finally 6 + 45.
Winston Gutkowski wrote:
Winston Gutkowski wrote:...so some sort of evaluation is needed to make sure that the type of rvalue is correct.
Dang! Now I'm mixing compile-time with runtime....
Winston Gutkowski wrote:
Winston Gutkowski wrote:...so some sort of evaluation is needed to make sure that the type of rvalue is correct.
Dang! Now I'm mixing compile-time with runtime....
Roel De Nijs wrote:And honestly I think you are overcomplicating this a little bit, while it is so easy and simple:
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Winston Gutkowski wrote:For a self-professed "human compiler" maybe; but plainly not for the rest of us mortals.
Winston Gutkowski wrote:And I still say that the JLS only adds to the confusion, because its narrative is far from clear.
I disagree.Cedric Bosch wrote:First of all this :
Can be rewritten as this:
That explanation is also incorrect, even though the output is false.Cedric Bosch wrote:System.out.println( (false && true | true ); // Since bitwise operations have precedence this is always false ie => (false) && (true | true) => false && true
Cedric Bosch wrote:With that out of the way you can see that this :
System.out.println( (false && true | true ); // Since bitwise operations have precedence this is always false ie => (false) && (true | true) => false && true
Cedric Bosch wrote:In the mean time can someone tell me what's a cow ? I see every one is saying "here have a cow".
Roel De Nijs wrote:Secondly your understanding of how the evaluation of the following statement occurs, is completely wrong as well
Cedric Bosch wrote:I hope that's correct ?
And my first statement would have been correct if (I suppose) :
Liutauras Vilda wrote:
You just got your first cow for a nicely solved problem well done
Doe, a deer, a female deer. Ray, a pockeful of sun. Me, a name, I call my tiny ad ...
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|