19.11.2014 Views

The Fortress Language Specification - CiteSeerX

The Fortress Language Specification - CiteSeerX

The Fortress Language Specification - CiteSeerX

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

24.1.10 opr ≡(self,other: Boolean):Boolean<br />

24.1.11 opr =(self,other: Boolean):Boolean<br />

24.1.12 opr ↔(self,other: Boolean):Boolean<br />

<strong>The</strong> logical equivalence, or exclusive NOR, operator ≡ ( EQV ) returns true if both arguments are true or both<br />

arguments are false ; it returns false if the arguments are different, one being true and the other false . (Thus its<br />

behavior on boolean values happens to be exactly the same as that of the strict equivalence operator = .)<br />

<strong>The</strong> equality operator = and the if-and-only-if operator ↔ ( IFF ) do the same thing as ≡ .<br />

For ≢ see Section 26.1.2. For ≠ see Section 26.1.4.<br />

24.1.13 opr →(self,other: Boolean):Boolean<br />

24.1.14 opr →(self,other: () → Boolean): Boolean<br />

<strong>The</strong> logical implication operator → ( IMPLIES ) returns false if the first argument is true but the second argument<br />

is false ; otherwise it returns true .<br />

<strong>The</strong> conditional logical implication operator → : ( IMPLIES: ) examines its first argument; if it is false , the result<br />

is true , and the second argument (a thunk) is not evaluated. But if the first argument is true , the second argument is<br />

evaluated and its result becomes the result of the conditional logical implication operator expression.<br />

24.1.15 opr ∧(self,other: Boolean):Boolean<br />

<strong>The</strong> logical NAND (NOT AND) operator ∧ ( NAND ) returns false if both arguments are true ; otherwise it returns<br />

true .<br />

24.1.16 opr ∨(self,other: Boolean):Boolean<br />

<strong>The</strong> logical NOR (NOT OR) operator ∨ ( NOR ) returns false if both arguments are false ; otherwise it returns true .<br />

24.1.17 getter true():Boolean<br />

24.1.18 getter false():Boolean<br />

<strong>The</strong> getter true returns the value true , and the getter false returns the value false . <strong>The</strong>se are defined primarily for<br />

the benefit of the BooleanAlgebra traits that Boolean extends.<br />

24.1.19 opr =(self,other: Boolean):Boolean<br />

Two boolean values are strictly equivalent if and only if they are the same boolean value (that is, both true or both<br />

false ).<br />

184

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!