• 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: why Obj-C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why Obj-C


  • Subject: Re: why Obj-C
  • From: David Vierra <email@hidden>
  • Date: Tue, 9 Apr 2002 23:57:30 -1000

Begin forwarded message:

On Tuesday, April 9, 2002, at 04:45 PM, Jim Correia wrote:
The actual behavior depends on the "standard" C++ library that you are using.

The "standard" libraries included with both OS X and MSVC++ allow you to specify (nothrow) when allocating with new. e.g.:

Bar * myObjectRef = new(nothrow) Bar(x);
if(myObjectRef == NULL)
{
RunAwayScreaming();
}

If any other libraries have you do something completely different to do this, let me know.
_______________________________________________
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: why Obj-C
      • From: Jim Correia <email@hidden>
  • Prev by Date: Re: Can I do something when double click on a button?
  • Next by Date: Re(2): why Obj-C
  • Previous by thread: Re: why Obj-C
  • Next by thread: Re: why Obj-C
  • Index(es):
    • Date
    • Thread