About Question enthuware.ocajp.i.v7.2.973 :
Posted: Tue Jun 25, 2013 9:31 am
In the explanation there are the following examples:
It is said that the first one wouldn't assign false to 'bool', whereas the second does. Unfortunately the compiler complains about these expressions. The reason is, that || and | comes before =. (--> operator precedence)
Maybe I miss something but I think it should be changed to the following:
Code: Select all
( true || bool = false)
( true | bool = false)
Maybe I miss something but I think it should be changed to the following:
Code: Select all
( true || (bool = false))
( true | (bool = false))