Map
Index
Random
Help
th

Quote: Smalltalk uses 'false' and 'true' objects for control; 'false' ignores 'ifTrue:' and evaluates 'ifFalse:'

topics > all references > references t-z > QuoteRef: xlrg8_1981 , p. 46



Topic:
program blocks for control

Quotation Skeleton

The expression queue isEmpty ifTrue: [index <- 0] ifFalse: [index <- queue next] evaluates the expressions in the first block if the receiver … The representation of conditions in the Smalltalk-80 system … When ifTrue: is sent to false, it returns …   Google-1   Google-2

Copyright clearance needed for quotation.


Related Topics up

Topic: program blocks for control (20 items)

Copyright © 2002-2008 by C. Bradford Barber. All rights reserved.
Thesa is a trademark of C. Bradford Barber.