Re: Beginners Digest, Vol 102, Issue 13

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

Re: Beginners Digest, Vol 102, Issue 13

Dan Norton

Hi Casey,

The target is Browser, which does not override the method.
The hierarchy is: ProtoObject, Object, Model, StringHolder (has the method), CodeHolder, Browser, et seq.

 

I put the halt in StringHolder>>perform:orSendTo: and that didn't bring up the debugger.

 

There are 13 implementers of perform:orSendTo: and I can put a halt in each one in order to start the research, but I don't understand why the hierarchy seems to be bypassed.

 

- Dan


>Date: Tue, 25 Nov 2014 21:43:57 -0800
>From: Casey Ransberger
>Subject: Re: [Newbies] accept (s)
>To: "[hidden email]" , "A friendly
> place to get answers to even the most basic questions about Squeak."
>
>Message-ID: <[hidden email]>
>Content-Type: text/plain; charset="us-ascii"
>
>Hi Dan,
>
>That doesn't sound quite right.
>
>#perform:orSendTo: is probably overridden in Browser, but... have you looked to see if there's an implementation of it on Object or maybe ProtoObject or something like that?
>
>I'm pretty sure that #perform: and cousins are usually general.
>
>Not sure (on a cellphone) without looking at an actual running system, but try looking up the inheritance chain for another implementation of the same selector. That might help.
>
>Let me know either way, when I get back to a real computer I'll look into it for you if you don't get it figured out by then.
>
>Good hunting!
>
>Casey
>
>> On Nov 25, 2014, at 5:30 PM, wrote:
>>
>> An inspector for the menu item "accept (s)" reveals a selector of "#perform:orSendTo:" which is implemented in Browser.
>>
>> I want to follow the code and I put a halt in "#perform:orSendTo:" but the debugger never opened. What gives?
>>
>>
>>
>> - Dan
>>
>> _______________________________________________
>> Beginners mailing list
>> [hidden email]
>> http://lists.squeakfoundation.org/mailman/listinfo/beginners


_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Beginners Digest, Vol 102, Issue 13

Raymond Asselin-4
I suppose you put "self halt." ?

Envoyé de mon iPhone

Le 2014-11-26 à 12:42, [hidden email] a écrit :

Hi Casey,

The target is Browser, which does not override the method.
The hierarchy is: ProtoObject, Object, Model, StringHolder (has the method), CodeHolder, Browser, et seq.

 

I put the halt in StringHolder>>perform:orSendTo: and that didn't bring up the debugger.

 

There are 13 implementers of perform:orSendTo: and I can put a halt in each one in order to start the research, but I don't understand why the hierarchy seems to be bypassed.

 

- Dan


>Date: Tue, 25 Nov 2014 21:43:57 -0800
>From: Casey Ransberger
>Subject: Re: [Newbies] accept (s)
>To: "[hidden email]" , "A friendly
> place to get answers to even the most basic questions about Squeak."
>
>Message-ID: <[hidden email]>
>Content-Type: text/plain; charset="us-ascii"
>
>Hi Dan,
>
>That doesn't sound quite right.
>
>#perform:orSendTo: is probably overridden in Browser, but... have you looked to see if there's an implementation of it on Object or maybe ProtoObject or something like that?
>
>I'm pretty sure that #perform: and cousins are usually general.
>
>Not sure (on a cellphone) without looking at an actual running system, but try looking up the inheritance chain for another implementation of the same selector. That might help.
>
>Let me know either way, when I get back to a real computer I'll look into it for you if you don't get it figured out by then.
>
>Good hunting!
>
>Casey
>
>> On Nov 25, 2014, at 5:30 PM, wrote:
>>
>> An inspector for the menu item "accept (s)" reveals a selector of "#perform:orSendTo:" which is implemented in Browser.
>>
>> I want to follow the code and I put a halt in "#perform:orSendTo:" but the debugger never opened. What gives?
>>
>>
>>
>> - Dan
>>
>> _______________________________________________
>> Beginners mailing list
>> [hidden email]
>> http://lists.squeakfoundation.org/mailman/listinfo/beginners

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners