[squeak-dev] Re: Re: How to copy method safely?

Keith Hodges keith_hodges at yahoo.co.uk
Mon Nov 3 21:45:28 UTC 2008


Sophie (itsme213) wrote:
> "Matthew Fulmer" <tapplek at gmail.com> wrote in message
>   
>> On Sun, Nov 02, 2008 at 10:10:49PM -0600, Sophie (itsme213) wrote:
>>     
>>> I have tried several combinations of poking around #methodDictionary,
>>> #addSelector, even CompiledMethod>>#getSource fed to Compiler. I only
>>> succeed in messing up things and getting a large red methods-list pane in 
>>> my
>>> browser window :-)
>>>       
>
>   
>> Well, the easiest way is to copy-paste.
>>     
>
> Ah, why didn't I think of that :-) I'd much prefer it programmed.
>
>   
>> What are you trying to do?
>>     
>
> Migrate off traits to ease migration to Gemstone by (a) replacing the trait 
> with a plain class, and (b) programatically pushing methods from that class 
> into other classes.
>   
Matthew has a script for flattening traits

Keith



More information about the Squeak-dev mailing list