equal
deleted
inserted
replaced
108 ^ self |
108 ^ self |
109 ! |
109 ! |
110 |
110 |
111 ifFalse:aBlock |
111 ifFalse:aBlock |
112 "If the receiver is false, return the value of evaluating aBlock; nil otherwise. |
112 "If the receiver is false, return the value of evaluating aBlock; nil otherwise. |
113 Since the receiver is definitely false here, unconditionally return the blocks value. |
113 Since the receiver is definitely false here, unconditionally return the block's value. |
114 Notice: |
114 Notice: |
115 This method is open coded (inlined) by the compiler(s) |
115 This method is open coded (inlined) by the compiler(s) |
116 - redefining it may not work as expected." |
116 - redefining it may not work as expected." |
117 |
117 |
118 ^ aBlock value |
118 ^ aBlock value |
|
119 |
|
120 "Modified (comment): / 13-03-2019 / 10:23:10 / Claus Gittinger" |
119 ! |
121 ! |
120 |
122 |
121 ifFalse:falseBlock ifTrue:trueBlock |
123 ifFalse:falseBlock ifTrue:trueBlock |
122 "return the value of evaluating falseBlock (since the receiver is false) |
124 "return the value of evaluating falseBlock (since the receiver is false) |
123 Notice: |
125 Notice: |
247 nil haltIfNil |
249 nil haltIfNil |
248 " |
250 " |
249 |
251 |
250 "Created: / 17-07-2017 / 17:43:01 / cg" |
252 "Created: / 17-07-2017 / 17:43:01 / cg" |
251 ! ! |
253 ! ! |
|
254 |
252 |
255 |
253 !False methodsFor:'logical operations'! |
256 !False methodsFor:'logical operations'! |
254 |
257 |
255 & aBoolean |
258 & aBoolean |
256 "return true, if both the receiver and the argument are true |
259 "return true, if both the receiver and the argument are true |