Classes as Packages (was: Harvesting infrastructure)
Avi Bryant
avi at beta4.com
Tue Nov 19 08:36:20 UTC 2002
On Tue, 19 Nov 2002 tblanchard at mac.com wrote:
> As for adding protocol to Object - its done fairly often - simple
> example is to have a project Foo that manages FooElements - I'm quite
> likely to add a method category FooExtensions to Object and put an
> isFooElement method (returning false) that I override in FooElement to
> return true.
<plug>
Better yet, name the method category '*foo' so that
PackageInfo/DVS/Monticello/SpaghettiTracer can find the extension
automatically.
</plug>
;)
Avi
More information about the Squeak-dev
mailing list
|