|
|
6.11 Boolean
- Defined in namespace Smalltalk
- Category: Language-Data types
- I have two instances in the Smalltalk system: true and false. I provide
methods that are conditional on boolean values, such as conditional
execution and loops, and conditional testing, such as conditional and and
conditional or. I should say that I appear to provide those operations;
my subclasses True and False actually provide those operations.
6.11.1 Boolean class: testing
- isIdentity
- Answer whether x = y implies x == y for instances of the receiver
- isImmediate
- Answer whether, if x is an instance of the receiver, x copy == x
6.11.2 Boolean: basic
- & aBoolean
- This method's functionality should be implemented by subclasses of Boolean
- and: aBlock
- This method's functionality should be implemented by subclasses of Boolean
- eqv: aBoolean
- This method's functionality should be implemented by subclasses of Boolean
- ifFalse: falseBlock
- This method's functionality should be implemented by subclasses of Boolean
- ifFalse: falseBlock ifTrue: trueBlock
- This method's functionality should be implemented by subclasses of Boolean
- ifTrue: trueBlock
- This method's functionality should be implemented by subclasses of Boolean
- ifTrue: trueBlock ifFalse: falseBlock
- This method's functionality should be implemented by subclasses of Boolean
- not
- This method's functionality should be implemented by subclasses of Boolean
- or: aBlock
- This method's functionality should be implemented by subclasses of Boolean
- xor: aBoolean
- This method's functionality should be implemented by subclasses of Boolean
- | aBoolean
- This method's functionality should be implemented by subclasses of Boolean
6.11.3 Boolean: C hacks
- asCBooleanValue
- This method's functionality should be implemented by subclasses of Boolean
6.11.4 Boolean: overriding
- deepCopy
- Answer the receiver.
- shallowCopy
- Answer the receiver.
6.11.5 Boolean: storing
- storeOn: aStream
- Store on aStream some Smalltalk code which compiles to the receiver
|