sq 3.9 compiledmethod #sourceClass and #methodClass
Andreas Raab
andreas.raab at gmx.de
Tue Oct 10 09:20:00 UTC 2006
Marcus Denker wrote:
> I think the setup we have right now should already be set up to return the
> Trait on methodClass: This is the only case where
> the method is installed for real, so methodClass is set at that point.
Not necessarily true. A method which includes a super-send cannot point
to the trait in its method class - if it did it would explode right
under your feet.
> The sharing-entry that happens when a Trait gets included
> in a class does not re-set the methodClass (I think, should be checked).
That better not be true for methods with super sends.
> So a "methodClass" returns a class or a Trait. if it returns
> a Trait, this trait then can be queried for all classes that it is
> installed in.
This seems wrong. It should always return the class it *installed* in,
never the trait it is *defined* in.
Cheers,
- Andreas
More information about the Squeak-dev
mailing list
|