How to deprecate classes?
Doug Way
dway at mailcan.com
Sun Oct 3 18:45:39 UTC 2004
On Oct 2, 2004, at 4:54 AM, stéphane ducasse wrote:
> deprecating methods is simple and works well.
> Now I'm wondering how we could deprecate classes?
> Let them in the image in a special categoriy and redefining basicNew
> to use the same deprecation mechanism?
> Any other idea?
Good question. I was wondering how to do this with TwoWayScrollPane
which is deprecated.
There are a lot of options. Moving the class to a new category called
Deprecated might be good. (This would make it easy to know which
classes need to be deleted in the following release.) On top of that,
I guess you could redefine basicNew or new or something to use the
deprecation mechanism, so that it shows up during runtime when you have
deprecation warnings turned on.
Other things you could do might be adding to the class comment or
adding a new method category called 'this class is deprecated'. But
these are probably redundant if you've already moved the class to the
Deprecated class category. So I'd say maybe just do the two things in
the previous paragraph.
- Doug
>
> For example we could apply that to RuleDate classes to give a try.
>
>
> Stef
>
>
More information about the Squeak-dev
mailing list
|