equal
deleted
inserted
replaced
88 Boolean readFromString:'true xxx' |
88 Boolean readFromString:'true xxx' |
89 Boolean readFromString:'false xxx' |
89 Boolean readFromString:'false xxx' |
90 " |
90 " |
91 ! ! |
91 ! ! |
92 |
92 |
93 |
|
94 |
|
95 !Boolean class methodsFor:'queries'! |
93 !Boolean class methodsFor:'queries'! |
96 |
94 |
97 hasSharedInstances |
95 hasSharedInstances |
98 "return true if this class has shared instances, that is, instances |
96 "return true if this class has shared instances, that is, instances |
99 with the same value are identical. |
97 with the same value are identical. |
110 |
108 |
111 "Modified: 23.4.1996 / 15:58:22 / cg" |
109 "Modified: 23.4.1996 / 15:58:22 / cg" |
112 ! ! |
110 ! ! |
113 |
111 |
114 |
112 |
115 |
|
116 !Boolean methodsFor:'blocked'! |
113 !Boolean methodsFor:'blocked'! |
117 |
114 |
118 addDependent:someOne |
115 addDependent:someOne |
119 "/ not really an error ... |
116 "/ not really an error ... |
120 "/ self error:'should not be invoked for booleans' |
117 "/ self error:'should not be invoked for booleans' |
171 - since both true and false are unique, return the receiver" |
168 - since both true and false are unique, return the receiver" |
172 |
169 |
173 ^ self |
170 ^ self |
174 ! ! |
171 ! ! |
175 |
172 |
|
173 |
176 !Boolean methodsFor:'printing & storing'! |
174 !Boolean methodsFor:'printing & storing'! |
177 |
175 |
178 printOn:aStream |
176 printOn:aStream |
179 "append a character sequence representing the receiver to the argument, aStream" |
177 "append a character sequence representing the receiver to the argument, aStream" |
180 |
178 |
223 ! ! |
221 ! ! |
224 |
222 |
225 !Boolean methodsFor:'visiting'! |
223 !Boolean methodsFor:'visiting'! |
226 |
224 |
227 acceptVisitor:aVisitor with:aParameter |
225 acceptVisitor:aVisitor with:aParameter |
|
226 "dispatch for visitor pattern; send #visitBoolean:with: to aVisitor" |
228 |
227 |
229 ^ aVisitor visitBoolean:self with:aParameter |
228 ^ aVisitor visitBoolean:self with:aParameter |
230 ! ! |
229 ! ! |
231 |
230 |
232 !Boolean class methodsFor:'documentation'! |
231 !Boolean class methodsFor:'documentation'! |
233 |
232 |
234 version |
233 version |
235 ^ '$Header: /cvs/stx/stx/libbasic/Boolean.st,v 1.42 2011-09-29 13:24:33 cg Exp $' |
234 ^ '$Header: /cvs/stx/stx/libbasic/Boolean.st,v 1.43 2014-07-09 16:21:02 cg Exp $' |
236 ! |
235 ! |
237 |
236 |
238 version_CVS |
237 version_CVS |
239 ^ '$Header: /cvs/stx/stx/libbasic/Boolean.st,v 1.42 2011-09-29 13:24:33 cg Exp $' |
238 ^ '$Header: /cvs/stx/stx/libbasic/Boolean.st,v 1.43 2014-07-09 16:21:02 cg Exp $' |
240 ! ! |
239 ! ! |
|
240 |