Back: BlockContext-printing Up: Base classes Forward: Boolean class-testing   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

1.12 Boolean

Defined in namespace Smalltalk
Superclass: Object
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.

1.12.1 Boolean class: testing  (class)
1.12.2 Boolean: basic  (instance)
1.12.3 Boolean: C hacks  (instance)
1.12.4 Boolean: overriding  (instance)
1.12.5 Boolean: storing  (instance)


1.12.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


1.12.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


1.12.3 Boolean: C hacks

asCBooleanValue
This method's functionality should be implemented by subclasses of Boolean


1.12.4 Boolean: overriding

deepCopy
Answer the receiver.

shallowCopy
Answer the receiver.


1.12.5 Boolean: storing

isLiteralObject
Answer whether the receiver is expressible as a Smalltalk literal.

storeLiteralOn: aStream
Store on aStream some Smalltalk code which compiles to the receiver

storeOn: aStream
Store on aStream some Smalltalk code which compiles to the receiver



Back: Boolean-overriding Up: Boolean Forward: ByteArray   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on April, 16 2013 using texi2html