[squeak-dev] Why does MessageSet subclass Browser?

Frank Shearar frank.shearar at angband.za.org
Tue Mar 8 08:28:55 UTC 2011


On 2011/03/08 01:47, Chris Muller wrote:
> On Mon, Mar 7, 2011 at 5:16 PM, Chris Muller<asqueaker at gmail.com>  wrote:
>>> super/subclass. A MessageSet does less things than a Browser.
>>
>> Hmm, no it doesn't.  It sounds like you're thinking of a "Browser" as
>> a PackagePane browser.  In fact, a PackagePaneBrowser is-a Browser
>> just as a HierarchyBrowser is-a Browser just as a MessageSet is-a
>> Browser.  Hope that helps.
>
> About this, I realize now you were referring to the actual
> implementation, not the semantics.  Yes, Browser seems to have too
> much in it.

Yes, that's exactly it. I'm more interested in the story behind the 
choice to subclass Browser rather than pull out the common bit into, 
say, BaseBrowser, and subclass off that.

That particular bit of work's for another day though :)

frank



More information about the Squeak-dev mailing list