Hi
Using the idea we got with Peter Uhnak, we know implemented using transformation library of gustavo two new transformation: - deprecate class just compile a new method raising a warning: + a class method deprecated returning true (this could then improve to rename the method new if it already exist). - rename and deprecate: the idea here is that we want to make sure that we can rename a class and that external users get a chance to load and execute their code. For that if we have a class A we rename it into ANewName and create an empty subclass A that we deprecate. Let us know what you think. Stef and Gustavo |
Sounds good! On Fri, Sep 2, 2016 at 8:11 AM, stepharo <[hidden email]> wrote: Hi |
Excellent!
How can I try it? Doru > On Sep 2, 2016, at 10:31 AM, Nicolas Passerini <[hidden email]> wrote: > > Sounds good! > > On Fri, Sep 2, 2016 at 8:11 AM, stepharo <[hidden email]> wrote: > Hi > > Using the idea we got with Peter Uhnak, we know implemented using transformation library of gustavo two new transformation: > > - deprecate class > > just compile a new method raising a warning: > > + a class method deprecated returning true (this could then improve to rename the method new if it already exist). > > - rename and deprecate: > > the idea here is that we want to make sure that we can rename a class and that external users get a chance to load and execute their code. For that if we have a class A we rename it into ANewName and create an empty subclass A that we deprecate. > > Let us know what you think. > > Stef and Gustavo > > > -- www.tudorgirba.com www.feenk.com "Sometimes the best solution is not the best solution." |
+100 and same question |
Gofer it smalltalkhubUser: 'GustavoSantos' project: 'Refactoring2'; configurationOf: 'Refactoring2'; loadDevelopment. then RBRenameAndDeprecateClassTransformation is the class you need Gustavo Santos |
Make sure to have the latest version of Refactoring-Core, because we fixed a bug on it yesterday On Fri, Sep 2, 2016 at 1:32 PM, Gustavo Santos <[hidden email]> wrote:
Gustavo Santos |
Gustavo The fix is now in Pharo 60 :) Stef Le 2/9/16 à 13:35, Gustavo Santos a
écrit :
|
Free forum by Nabble | Edit this page |