Back: Time-comparing Up: Base classes Forward: True-basic   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

1.195 True

Defined in namespace Smalltalk
Superclass: Boolean
Category: Language-Data types
I represent truth and justice in the world. My motto is "semper veritatis".

1.195.1 True: basic  (instance)
1.195.2 True: C hacks  (instance)
1.195.3 True: printing  (instance)


1.195.1 True: basic

& aBoolean
We are true -- anded with anything, we always answer the other operand

and: aBlock
We are true -- anded with anything, we always answer the other operand, so evaluate aBlock

eqv: aBoolean
Answer whether the receiver and aBoolean represent the same boolean value

ifFalse: falseBlock
We are true -- answer nil

ifFalse: falseBlock ifTrue: trueBlock
We are true -- evaluate trueBlock

ifTrue: trueBlock
We are true -- evaluate trueBlock

ifTrue: trueBlock ifFalse: falseBlock
We are true -- evaluate trueBlock

not
We are true -- answer false

or: aBlock
We are true -- ored with anything, we always answer true

xor: aBoolean
Answer whether the receiver and aBoolean represent different boolean values

| aBoolean
We are true -- ored with anything, we always answer true


1.195.2 True: C hacks

asCBooleanValue
Answer `1'.


1.195.3 True: printing

printOn: aStream
Print a representation of the receiver on aStream



Back: True-C hacks Up: True Forward: UndefinedObject   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on February, 22 2012 using texi2html