sq 3.9 compiledmethod #sourceClass and #methodClass

Philippe Marschall philippe.marschall at gmail.com
Tue Oct 10 05:08:42 UTC 2006


2006/10/10, tim Rowledge <tim at rowledge.org>:
> So far as I can see the method CompiledMethod>sourceClass is now
> completely obsolete and its function is replaced by methodClass.
> Since the 3.9-7061 image seems to have all methods set up to have the
> methodClass is there any value in this potentially confusing extra
> function?
>
> There is one bit of confusion that seems to be related to the use of
> Traits though -
> (SystemNavigation default allMethodsNoDoitsSelect:[:cm|
>                 (cm sourceClass == cm methodClass) not ]
> produces a list of methods where the two messages produce different
> results. It seems that for example
> Behavior >> #isLocalAliasSelector:
> has a methodClass of 'Behavior' as one might expect but a sourceClass
> of ' TAccessingTraitCompositionBehavior' which I wouldn't expect. Why?

Because its a method of a trait?

Philippe



More information about the Squeak-dev mailing list