|
From: Ferdinando A. <na...@am...> - 2009-11-27 16:31:15
|
On Fri, Nov 27, 2009 at 2:12 PM, Luigi Ballabio
<lui...@gm...> wrote:
> On Fri, 2009-11-27 at 12:56 +0100, Ferdinando Ametrano wrote:
>> On Fri, Nov 27, 2009 at 12:30 PM, Luigi Ballabio
>> > The variables above are all initialized one way or the other in a
>> > section of code that reads:
>> >
>> > if (init_ != true || constants_match != true || ...) {
>> > ... the variables are initialized to some values ...
>> > }
>> > else if (init_ == true && constants_match == true) {
>> > ... the variables are initialized to some other values ...
>> > }
>>
>> mmm... it seems to me the condition you summarized as "..." might
>> really imply some other logic branch where variables are not
>> initialized.
>
> No. If either init or constants_match is false, the code takes the first
> branch (it's an or, so one suffices.) If not, either the conditions in
> "..." are true (and the code takes the first branch) or, since init and
> constant_match are both true, it takes the second branch.
ooops... now I got it.
I was confused between AND and OR... go figure :-)
so I'll commit a revisited if else: please don't forget to check my logic
ciao -- Nando
ciao -- Nando
|