swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: what's wrong with this use of the index to clean a list?


From: Marcus G. Daniels
Subject: Re: what's wrong with this use of the index to clean a list?
Date: 28 Oct 1999 08:52:10 -0700
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.4

>>>>> "JA" ==   <address@hidden> writes:

JA> So, although sending messages to nil doesn't hurt anything, it is
JA> almost always a sign that something else is awry in the program.

The function that detects this was inadvertently disabled (it was
only active for old versions of the compiler).  That's fixed now.

The function `nil_method' is called by the Objective C runtime
whenever messages are sent to nil.  For example if you add this to
your model, you'll get warning messages for messages sent to nil.

id
nil_method (id receiver, SEL op, ...)
{
  raiseEvent (WarningMessage, "`%s' was sent to nil\n", sel_get_name (op));
  return nil;
}


                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]