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

Marcus Denker denker at iam.unibe.ch
Tue Oct 10 07:14:57 UTC 2006


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.

     Marcus



More information about the Squeak-dev mailing list