How to do logging (was Re: [squeak-dev] Files documentation)

Keith Hodges keith_hodges at yahoo.co.uk
Thu Nov 27 18:07:46 UTC 2008


Avi Bryant wrote:
> On Thu, Nov 27, 2008 at 9:44 AM, Keith Hodges <keith_hodges at yahoo.co.uk> wrote:
>
>   
>> self send a message to me.
>> A := self nextThing.
>>
>> What naughty superpower code can I put in to #send that will jump
>> execution to self nextThing directly?
>>     
>
> Have #send return an object which has #doesNotUnderstand: implemented as ^ self.
>
> This is a "message eating nil" - see also:
>   
Thanks Avi,

Indeed, I am a champion of the message eating null, see
http://www.squeaksource.com/Null for squeak.

That's what I am doing already. The problem is that the arguments to
these methods may take a long time to calculate so I am looking for a
short cut, all beit an evil one.

regards

Keith



More information about the Squeak-dev mailing list