Compiled Method, Deep copy

Daniel Joyce daniel.a.joyce at worldnet.att.net
Mon Dec 16 06:32:14 UTC 2002


On Sunday 15 December 2002 10:51 pm, Luis Alessi Salazar wrote:
> Hi everyone,
>            First of all I want to thanks for the answer to my
> previous question, but I keep on having some problems. I will explain
> myself as clear as I can. I want to have diferents implementation of
> a message in a class, I mean the signature and the class are the same
> but the implementations are diferents. The only way I found to
> compile a method is trougth the message #compile:aText, I send this
> message to the class and it adds the new implementation of the
> message to the MethodDictionary, but I lose the previous version,
> that´s why I want a deep copy, because I want to add a new
> implementation and keep the previous one in another object (another
> compiledMethod).
> Thanks, Luis


So define a method that copies the old method to a new place before 
replacing the old one...

-Daniel



More information about the Squeak-dev mailing list