[squeak-dev] Re: Future of Squeak, and outsider's view

Igor Stasenko siguctua at gmail.com
Tue Jun 30 15:53:58 UTC 2009


2009/6/30 Klaus D. Witzel <klaus.witzel at cobss.com>:
> 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 ;)
>

Sorry, can't understand. A meaning of 'reflect on'  doesn't fits well
with my non-english mindset :)

> /Klaus
>
>
>



-- 
Best regards,
Igor Stasenko AKA sig.



More information about the Squeak-dev mailing list