Em domingo, 16 de outubro de 2016, às 04:02:54 PDT, NDos Dannyu escreveu:
> 1. The left operand of *< *is evaluated to *true*, where the result will
> be always *false*,
K-map:
P\Q 0 1
0 0 1
1 0 0
Therefore, P<Q is the same as !P && Q, except that the current boolean
expression already has your short-circuiting request.
> 2. The left operand of *> *is evaluated to *false*, where the result
> will be always *false*,
P\Q 0 1
0 0 0
1 1 0
Therefore, this is the same as P && !Q.
> 3. The left operand of *<=* is evaluated to *false*, where the result
> will be always *true*,
P\Q 0 1
0 1 1
1 0 1
This is the same as !P || Q.
> 4. The left operand of *>=* is evaluated to *true*, where the result
> will be always *true*.
P\Q 0 1
0 1 0
1 1 1
This is the same as P || !Q.
--
Thiago Macieira - thiago (AT)
macieira.info - thiago (AT)
kde.org
Software Architect - Intel Open Source Technology Center