Shout Workspace by Default

Zulq Alam me at zulq.net
Mon Sep 11 00:15:39 UTC 2006


I want to have all Workspace instances actually be instances of its 
subclass SHWorkspace. I'm not sure about which way is advisable. My 
first thought was:

Workspace>>new
   ^ SHWorkspace new

SHWorkspace>>new
   ^ self basicNew initialize

This works but it doesn't feel right. Especially when I can get away with:

Workspace>>new
   ^ SHWorkspace basicNew initialize

You wisdom would be appreciated.

Oh, and isn't there something wrong with:

Behavior>>new
   ^ self basicNew initialize

Shouldn't it have a yourself? Otherwise it relies on initialize 
answering with self and it would seem often the implicit self. Perhaps 
this is intended for some reason?

Thanks,
Zulq.







More information about the Squeak-dev mailing list