Debian Codegraph @

src/test/01-Basic/283-boolean-logic.ck

raw
1 // just to be sure...
2 // requires chuck-1.5.5.8
3
4 // previous this did not work due to how logical AND and OR
5 // were optimized for early termination; what was left on the
6 // stack was not limited to 0 or 1, but could take on the value
7 // of the RHS; this in practice "works" except in cases such
8 // as this:
9 if( (2 && 3) == true )
10 {
11 <<< "success" >>>;
12 }