• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: nil messaging? Is it safe?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nil messaging? Is it safe?


  • Subject: Re: nil messaging? Is it safe?
  • From: Ondra Cada <email@hidden>
  • Date: Fri, 27 Sep 2002 03:20:04 +0200

On Friday, September 27, 2002, at 01:19 , Jonathan Wight wrote:

Which reminds me - I find the fact that the runtime effectively ignores
messages to nil/NULL to be a source of many hard to trace errors. Is it
possible to set the runtime or perhaps GDB up so that it'll break if you
attempt to send a message to nil?

No, since it is a *VERY* common trick.

More precisely: of course you can do that, but if you try, you'll return to the original behaviour as fast as possible. Anybody sends messages to nil (assuming nothing happens) *VERY* frequently.
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: nil messaging? Is it safe?
      • From: Jonathan Wight <email@hidden>
References: 
 >Re: nil messaging? Is it safe? (From: Jonathan Wight <email@hidden>)

  • Prev by Date: Re: A little OT Help
  • Next by Date: Re: nil messaging? Is it safe?
  • Previous by thread: Re: nil messaging? Is it safe?
  • Next by thread: Re: nil messaging? Is it safe?
  • Index(es):
    • Date
    • Thread