is subclassing Project OK?

Torge Husfeldt Torge.Husfeldt at gmx.de
Thu Aug 8 20:12:37 UTC 2002


Ned Konz wrote:
> 
> On Wednesday 07 August 2002 03:02 am, Torge Husfeldt wrote:
> > Don't you think it would be a Good Idea (tm) to replace quite a few
> > calls to #isKindOf: <Class> by is<Class>?
> 
> Yes. I've already been bitten by this a few times trying to add new
> classes that work equivalently to existing ones but don't inherit
> >from them.
> 
> > Some time ago i wrote a
> > snippet that did exactly this and posted it to the list (It works
> > with the #autoDeclineClassMembership preference that dates from the
> > same time, but you could make it work with explicit
> > "is<Class>      ^false" methods in Object too)
> 
> I missed that. Do you have a pointer to an archive of the message?
I digged it up and whipped it up a bit. Should now work in a 3.3 image.
Please try it in a throw away copy of your image and report any problems.

Thanks,
Torge

> 
> --
> Ned Konz
> http://bike-nomad.com
> GPG key ID: BEEA7EFE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: purge-IsKindOf-th.4.cs
Type: application/x-squeak-source
Size: 9364 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20020808/5e09a8e3/purge-IsKindOf-th.4.sts


More information about the Squeak-dev mailing list