about clas deprecation

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

about clas deprecation

stepharo
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


Reply | Threaded
Open this post in threaded view
|

Re: about clas deprecation

Nicolas Passerini
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



Reply | Threaded
Open this post in threaded view
|

Re: about clas deprecation

Tudor Girba-2
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."


Reply | Threaded
Open this post in threaded view
|

Re: about clas deprecation

Denis Kudriashov

2016-09-02 11:35 GMT+02:00 Tudor Girba <[hidden email]>:
Excellent!

How can I try it?

+100 and same question
Reply | Threaded
Open this post in threaded view
|

Re: about clas deprecation

Gustavo Santos
Gofer it
   smalltalkhubUser: 'GustavoSantos'
   project: 'Refactoring2';
   configurationOf: 'Refactoring2';
   loadDevelopment.

then RBRenameAndDeprecateClassTransformation is the class you need



On Fri, Sep 2, 2016 at 12:41 PM, Denis Kudriashov <[hidden email]> wrote:

2016-09-02 11:35 GMT+02:00 Tudor Girba <[hidden email]>:
Excellent!

How can I try it?

+100 and same question



--
Reply | Threaded
Open this post in threaded view
|

Re: about clas deprecation

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:
Gofer it
   smalltalkhubUser: 'GustavoSantos'
   project: 'Refactoring2';
   configurationOf: 'Refactoring2';
   loadDevelopment.

then RBRenameAndDeprecateClassTransformation is the class you need



On Fri, Sep 2, 2016 at 12:41 PM, Denis Kudriashov <[hidden email]> wrote:

2016-09-02 11:35 GMT+02:00 Tudor Girba <[hidden email]>:
Excellent!

How can I try it?

+100 and same question



--



--
Reply | Threaded
Open this post in threaded view
|

Re: about clas deprecation

stepharo

Gustavo

The fix is now in Pharo 60 :)

Stef


Le 2/9/16 à 13:35, Gustavo Santos a écrit :
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:
Gofer it
   smalltalkhubUser: 'GustavoSantos'
   project: 'Refactoring2';
   configurationOf: 'Refactoring2';
   loadDevelopment.

then RBRenameAndDeprecateClassTransformation is the class you need



On Fri, Sep 2, 2016 at 12:41 PM, Denis Kudriashov <[hidden email]> wrote:

2016-09-02 11:35 GMT+02:00 Tudor Girba <[hidden email]>:
Excellent!

How can I try it?

+100 and same question



--



--