This was done months ago shortly after closures were introduced, to  
make Polymorph work.

The associated tests might be nice to have in Pharo as well though :)

Cheers,
Henry

On Aug 27, 2009, at 8:47 17AM, Stéphane Ducasse wrote:

>
>
> Begin forwarded message:
>
>> From: [email protected]
>> Date: August 27, 2009 6:02:12 AM CEDT
>> To: [email protected]
>> Subject: [squeak-dev] The Trunk: Kernel-ar.230.mcz
>> Reply-To: [email protected]
>>
>> Andreas Raab uploaded a new version of Kernel to project The Trunk:
>> http://source.squeak.org/trunk/Kernel-ar.230.mcz
>>
>> ==================== Summary ====================
>>
>> Name: Kernel-ar.230
>> Author: ar
>> Time: 26 August 2009, 9:01:37 am
>> UUID: d0759469-14fd-2c40-a5bd-90aab36cd9a5
>> Ancestors: Kernel-ar.229
>>
>> Implementations for BlockClosure>>isValid and
>> asMinimalRepresentation for compatibility of BlockClosure with the
>> when:evaluate: protocol.
>>
>> =============== Diff against Kernel-ar.229 ===============
>>
>> Item was added:
>> + ----- Method: BlockClosure>>isValid (in category 'events-support')
>> -----
>> + isValid
>> +    "For use in the when:evaluate: protocol, i.e.,
>> +            foo when: #bar evaluate:[self handleBar].
>> +    Return true."
>> +    ^true!
>>
>> Item was added:
>> + ----- Method: BlockClosure>>asMinimalRepresentation (in category
>> 'events-support') -----
>> + asMinimalRepresentation
>> +    "For use in the when:evaluate: protocol, i.e.,
>> +            foo when: #bar evaluate:[self handleBar].
>> +    Return the receiver."
>> +    ^true!
>>
>>
>
>
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>


_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to