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

Avi Bryant avi at dabbledb.com
Thu Nov 27 17:52:05 UTC 2008


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:

http://web.archive.org/web/20060223010948/http://www.smalltalkpro.com/general.html



More information about the Squeak-dev mailing list