DeltaModules vs Envy/Ginsu Class Extensions (was Re: Squeak Starter)

Avi Bryant squeak-dev at lists.squeakfoundation.org
Sat Oct 19 19:56:38 UTC 2002


On Sat, 19 Oct 2002 danielv at netvision.net.il wrote:

> I don't know about Envy, but DVS style class extension practically do
> support modifying existing methods - you change a method's category to
> be "*myextending-system-category", and modify away. This means that for
> methods, only removals aren't supported.

You could effectively remove a method by placing it into
*mypackage-removed and changing it to call the super method (if one
exists) or throw an exception.

> For a practical example of this, load DVS, then load SpaghettiTracer,
> and look at PackageInfo. You'll see that SpaghettiTrace extends and
> modifies DVS - a little light refactoring, and widening some protocol so
> I can optimize some operations. (BTW, Avi, if you're reading this, you
> might want to review those and consider taking them/part upstream into
> DVS)

I'll check it out, when I get home.

Avi




More information about the Squeak-dev mailing list