Sujet : Re: Shortcut Booleans
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.cDate : 08. Jun 2024, 03:42:15
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v40ge7$2edfj$3@dont-email.me>
References : 1 2
User-Agent : Pan/0.158 (Avdiivka; )
On Fri, 7 Jun 2024 13:41:06 +0100, bart wrote:
Common sense applies, otherwise you could shortcut these operations:
a * b // when a is zero, the result is zero
a & b // when a is zero
And why not? It would depend on the complexity of the “a” and “b”
subexpressions, of course.