I'd rather use trait. Note that in both cases, subclasses will be made deprecated too.
Noury On 4 août 2011, at 10:17, Nicolas Cellier wrote: > Why not make this class a factory in the interim ? > > DeprecatedClass class>>new > self deprecated: 'DeprecatedClass use BrandNewClass instead'. > ^BrandNewClass new > > 2011/8/4 Mariano Martinez Peck <marianop...@gmail.com>: >> >> >> On Thu, Aug 4, 2011 at 1:42 AM, Chris Cunningham <cunningham...@gmail.com> >> wrote: >>> >>> On Mon, Aug 1, 2011 at 12:21 PM, Stéphane Ducasse >>> <stephane.duca...@inria.fr> wrote: >>>> The most important aspects is that there is not reference to it. >>>> and that if we replace it by something else, it works. >>>> After we can write in the comments in big that the class is deprecated. >>>> >>> >>> Could you (we) also deprecate all the methods in the class? Ideally >>> in some automated way, of course. >>> >> >> Or remove all methods and implement >> >> doesNotUnderstand: >> >> ^Error new signal: 'All mehtods of this class are deprecated, please use >> ....' >> >> >> hehheheh :) >> >> >> >> -- >> Mariano >> http://marianopeck.wordpress.com >> >> > Noury Bouraqadi http://car.mines-douai.fr/noury -- -19èmes Journées Francophones sur les Systèmes Multi-Agents (JFSMA’11) http://www.univ-valenciennes.fr/congres/jfsma2011/ 17-19 Octobre 2011, Valenciennes, France -5th International Conference on Smalltalk Technologies http://www.fast.org.ar November 3th - 5th, 2011 Universidad Nacional de Quilmes (Argentina)