[squeak-dev] Re: Future of Squeak, and outsider's view
Klaus D. Witzel
klaus.witzel at cobss.com
Tue Jun 30 15:26:39 UTC 2009
On Tue, 30 Jun 2009 16:39:43 +0200, Igor Stasenko wrote:
> 2009/6/30 Klaus D. Witzel :
...
>>> so, then you could have a method, which by iterating through your
>>> special collection, ignores all objects except those who
>>> also can be iterated in same manner:
>>>
>>> MySpecialCollection>>mySpecialCollect: aBlock
>>> ^ self collect: [:each |
>>> each isMySpecialCollection ifTrue: [ each mySpecialCollect:
>>> aBlock] ifFalse: [each]
>>> ]
>>
>> In _any_ Smalltalk, (each respondsTo: #mySpecialCollect:) is what you
>> want.
>>
>
> where the guarantees that some completely different class does not
> implements such method with completely different behavior?
Yes, I know, and I know your other requirements from CVLambda as well :)
the answer is :
1] you want to reflect on every possible class/behavior
2] you don't want to reflect on 1] as well
Shall I write 3] or was this already Okay ;)
/Klaus
More information about the Squeak-dev
mailing list
|