Perfect Developer basic tutorial 2 | This page last modified 2011-10-29 (JAC) |
Class bool has the values denoted by literals true and false.
The following binary operators are provided between Boolean objects:
&
logical "and" |
logical "or" ==>
implication (e.g. a ==> b
means the same as~a | b
)<==
reverse implication (e.g. a <== b
means the same asa | ~b
)<==>
equivalence (e.g. a <==> b
means the same asa = b
)
and the following unary operator:
~
logical negation ("not")
For the binary operators, the second operand need not be well defined if the
value of the expression can be determined from the first operand alone (e.g. the
expression i = 0 | (10/i > 3)
is well-formed).
Aside from the operators, class bool has one other interface member:
function toString: string
returns "true"
or"false"
as appropriate
Class bool is a final class, so other classes cannot inherit from it.
Knowledge round-up quiz
Next: Class char
Save My Place | Glossary | Language Reference Manual |
Copyright © 1997-2012 Escher Technologies Limited. All rights reserved. Information is subject to change without notice. |