Mess with obsolete classes???

Nathanael Scharli n.schaerli at gmx.net
Thu Feb 14 21:13:57 UTC 2002


Tim,

> Obsolete classes are normally kept around when there seems to be
> instances of the now-obsolete class. If you change the shape of a class
> and the existing instances cannot be converted, you end up having a
> dummy class to provide a clean #doesnotunderstand.
> As for the rest of your issues, I suspect it means that things have got
> a bit confused over time.

Thanks for your tip. In fact, the reshaping of the classes worked fine. I
just had to make sure that all he obsolete classes that are stored in the
system dictionary were also converted. (These classes don't appear as
obsolete subclasses of any class although they actually are).

Noticing this class hierarchy inconsistency I just got curious why this is
and why there are some obsolete classes stored in the system dictionary
rather than in the weak dictionary that holds all the other obsolete
classes.

Thanks,
Nathanael

> -----Original Message-----
> From: squeak-dev-admin at lists.squeakfoundation.org
> [mailto:squeak-dev-admin at lists.squeakfoundation.org]On Behalf Of Tim
> Rowledge
> Sent: Donnerstag, 14. Februar 2002 19:47
> To: squeak-dev at lists.squeakfoundation.org
> Subject: Re: Mess with obsolete classes???
>
>
> Nathanael Scharli <n.schaerli at gmx.net> is claimed by the
> authorities to have written:
>
>
> > The Smalltalk dictionary contains some keys starting with
> 'AnObsolete...'
> > which point to classes. The first thing that is strange, is
> that the keys
> > are strings and not literals. But then the next question: Why
> are obsolete
> > classes stored in the system dictionary? (Doesn't the definition of an
> > obsolete class say that it should not be there?).
> Obsolete classes are normally kept around when there seems to be
> instances of the now-obsolete class. If you change the shape of a class
> and the existing instances cannot be converted, you end up having a
> dummy class to provide a clean #doesnotunderstand.
> As for the rest of your issues, I suspect it means that things have got
> a bit confused over time.
>
> tim
> --
> Tim Rowledge, tim at sumeru.stanford.edu, http://sumeru.stanford.edu/tim
> Useful random insult:- A one-bit brain with a parity error.
>
>




More information about the Squeak-dev mailing list