[squeak-dev] Re: [Pharo-project] Why you need new Method trailers? :)

Igor Stasenko siguctua at gmail.com
Mon Dec 21 12:50:50 UTC 2009

2009/12/21 Adrian Lienhard <adi at netstyle.ch>:
> On Dec 21, 2009, at 13:36 , Igor Stasenko wrote:
>> 2009/12/21 Adrian Lienhard <adi at netstyle.ch>:
>>> Hi Igor,
>>> This looks complicated...
>> Hmm, i wonder, what Traits serve for, if requesting an original source
>> code of method which being installed in specific behavior using
>> specific selector
>> becomes non-trivial task.
> Well, it *is* trivial -- at least with the version of the Traits
> implementation in Pharo. See the changeset I attached.
will it work for aliased ones?

I found that in both trunk & pharo, aliases seem disfunctional.

Trait named: #Foo

create method:
Foo>>methodA .

Trait named: #Bar
using: Foo @ {#methodA -> #methodB }.

Bar shows a single method (methodA) ... but i expected to see #methodB instead.

Same for classes..

Object subclass: #Zork
uses: Bar
shows methodA, not methodB in browser.
I am doing something wrong?

> Cheers,
> Adrian

Best regards,
Igor Stasenko AKA sig.

More information about the Squeak-dev mailing list