Re: why Obj-C
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.