logo       

Re: Catching message send: msg#00160

lang.smalltalk.squeak.beginners

Subject: Re: Catching message send

Frank Urbach a écrit :
> Hi Mathieu,
>
> what do you want do?
>
> Cheers,
> Frank
>

I want to catch evry message to an IRBuilder but manage to do it in my own way.
It just to know if there is a Simple way.

CatchIRSend>>doesNotUnderstand: aMessage

| message |
message := aMessage selector asString.
aMessage arguments do:[:each | message := message, ' ', each
printString].
messageSend add: message.
irBuilder perform: aMessage selector withArguments: aMessage arguments


Math


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise