[Pharo-project] rename a method programatically

Tudor Girba tudor.girba at gmail.com
Wed Nov 24 00:43:30 CET 2010


Definitely use the RB for any code transformations.

Cheers,
Doru


On 23 Nov 2010, at 19:01, Mariano Martinez Peck wrote:

> Cyrille I don't know why you need that but take into account that RB split their packages even more in the last months. So maybe it is easier for you to directly use RB and load with your code, the RB core or the specific package that you need. Mostly if you need some other similar functionalities. 
> 
> Cheers
> 
> Mariano
> 
> On Tue, Nov 23, 2010 at 6:56 PM, jaayer <jaayer at zoho.com> wrote:
> 
> 
> 
> 
> ---- On Tue, 23 Nov 2010 05:17:05 -0800 Cyrille Delaunay  wrote ----
> 
> >Hello,
> >
> >I would like to know how I can rename a method programatically and safelly (without missing to raise any event that has to be raised)
> >
> 
> I don't believe there is any simple way to do this.
> 
> Basically, to rename a method you have to remove it first and compile into its class a new method containing the same source code but with a different selector at the beginning. This is how the refactory browser does it when you select "rename" from the "refactor method" menu. If anyone knows of a better way, I would be interested to hear it.
> 
> 
> 

--
www.tudorgirba.com

"To lead is not to demand things, it is to make them happen."







More information about the Pharo-project mailing list