help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] Object>>#do: ???


From: Paolo Bonzini
Subject: [Help-smalltalk] Object>>#do: ???
Date: Wed, 06 Jun 2007 07:12:56 +0200
User-agent: Thunderbird 2.0.0.0 (Macintosh/20070326)

Stephen's idea and my answer regarding #flatten: gave me a weird idea. Adding

    Object >> do: aBlock [ aBlock value: self ]

would be quite convenient in many cases where you have double dispatch going on between normal objects and collections. How weird would this be?

Paolo





reply via email to

[Prev in Thread] Current Thread [Next in Thread]