senders vs implementors

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

senders vs implementors

Tudor Girba
Hi,

I think I encountered an error in allImplementorsOf:, but I am not quite sure and I wanted to run it by you first.

If you evaluate
(self systemNavigation allSendersOf: #browse) anyOne sourceCode.

you get the source as expected.


However, if you evaluate:
(self systemNavigation allImplementorsOf: #browse) anyOne sourceCode.

you get an error.

The last snippet used to work just fine in Pharo 1.1.1.


I consider it a bug. What do you think?

Cheers,
Doru

--
www.tudorgirba.com

"Sometimes the best solution is not the best solution."


Reply | Threaded
Open this post in threaded view
|

Re: senders vs implementors

Marcus Denker-4

On Jan 12, 2011, at 3:25 PM, Tudor Girba wrote:

> Hi,
>
> I think I encountered an error in allImplementorsOf:, but I am not quite sure and I wanted to run it by you first.
>
> If you evaluate
> (self systemNavigation allSendersOf: #browse) anyOne sourceCode.
>
> you get the source as expected.
>
>
> However, if you evaluate:
> (self systemNavigation allImplementorsOf: #browse) anyOne sourceCode.
>
> you get an error.
>
> The last snippet used to work just fine in Pharo 1.1.1.
>
>
> I consider it a bug. What do you think?


Yes, this is a bug.

(the whole MethodReference stuff is right now in the process of being re-designed...)

One workound is to get the real method and ask it for the code:

(self systemNavigation allImplementorsOf: #browse) anyOne compiledMethod  getSource.


        arcus


--
Marcus Denker  -- http://www.marcusdenker.de
INRIA Lille -- Nord Europe. Team RMoD.


Reply | Threaded
Open this post in threaded view
|

Re: senders vs implementors

Tudor Girba
Thanks, Marcus.

Cheers,
Doru


On 12 Jan 2011, at 15:56, Marcus Denker wrote:

>
> On Jan 12, 2011, at 3:25 PM, Tudor Girba wrote:
>
>> Hi,
>>
>> I think I encountered an error in allImplementorsOf:, but I am not quite sure and I wanted to run it by you first.
>>
>> If you evaluate
>> (self systemNavigation allSendersOf: #browse) anyOne sourceCode.
>>
>> you get the source as expected.
>>
>>
>> However, if you evaluate:
>> (self systemNavigation allImplementorsOf: #browse) anyOne sourceCode.
>>
>> you get an error.
>>
>> The last snippet used to work just fine in Pharo 1.1.1.
>>
>>
>> I consider it a bug. What do you think?
>
>
> Yes, this is a bug.
>
> (the whole MethodReference stuff is right now in the process of being re-designed...)
>
> One workound is to get the real method and ask it for the code:
>
> (self systemNavigation allImplementorsOf: #browse) anyOne compiledMethod  getSource.
>
>
> arcus
>
>
> --
> Marcus Denker  -- http://www.marcusdenker.de
> INRIA Lille -- Nord Europe. Team RMoD.
>
>

--
www.tudorgirba.com

"Be rather willing to give than demanding to get."