P.S.  Two implications of this:

1. The code you're looking at may not be the code that is executed.
If in doubt, use the standard System Browser (not senders,
implementers, etc.).
2. Iceberg may not be loading extension methods that override an
existing method correctly, so the old version is left as the
executable code.  There may be happening in other situations as well,
I haven't checked.

Thanks,
Alistair

On Wed, 18 Sep 2019 at 11:04, Alistair Grant <akgrant0...@gmail.com> wrote:
>
> Hi Everyone,
>
> TraitedMetaclass stores methods in two different instance variables:
>
> - methodDict (inherited from Behavior)
> - localMethods
>
> And the same method can be different in each dictionary.
>
> Different browsers show different versions, i.e.:
>
> - The System Browser uses the method in methodDict.
> - Calypso's "Senders of" browser uses localMethods.
> - The Iceberg versions browser uses localMethods.
>
> It appears that the method in methodDict is the one that is actually
> used when a message is sent, but it would be nice to get confirmation.
>
> To reproduce this in a clean Pharo 8 image:
>
> - Open the System Browser on LGitBuf class>>signature_free: (the
> methodDict version).
> - Open the system browser on TLGitCalloutTrait>>call:options: and then
> press "Senders".  The resulting window will include LGitBuf
> class>>signature_free:, but the localMethods version.
>
> In this example, #signature_free: isn't defined by the trait, and
> isn't overwritten, so I would expect that the method in both
> dictionaries should be the same or it should only be in one
> dictionary.
>
> Can someone say what the intended behaviour is?
>
> Thanks,
> Alistair

Reply via email to