What is CompiledMethod>>replace:with:in: meant for?

Klaus D. Witzel klaus.witzel at cobss.com
Tue Oct 10 08:40:41 UTC 2006

On Tue, 10 Oct 2006 09:14:57 +0200, Marcus Denker wrote:
> On 10.10.2006, at 08:22, tim Rowledge wrote:
>> This method seems to be used in the context of  
>> CompiledMethod>>getSourceFor:in: as part of some handling of cases  
>> where the selector in there found source string doesn't match the  
>> selector passed in to the method.
>> Can anyone offer a scenario where this could  happen and where using  
>> replace:with:in: might actually have some use? The version info claims  
>> 'md 8/2/2006' so it has been touched recently, though of course not  
>> necessarily deliberately.
> This is used when a Traits-Method is installed (and shared) under a  
> different name in a Class.

I thought over this, a while ago. Isn't this a typical case for what  
method properties where invented for "my method shares  

So every method has its own method properties, and then the properties are  
definitely not sharable.


>      Marcus

More information about the Squeak-dev mailing list