TM> KC> Overload the new operator. If the object is created,
TM> KC> return a pointe else return NULL.
TM> Don't!
TM> The new operator's responsibility is to allocate
TM> memory; that's enough, don't abuse it for other things.
tm>....
Doesn't new already return NULL, or 0, on failure?
It does in VC++ 4.0.
Borland supplies a new_handler() function, but advises the
overloading of new also.
> ] Only two things left to worry about... Living, and Dieing...
---
---------------
* Origin: *YOPS ]I[* 3.1 GIG * RA/FD/FE RADist * Milwaukee, WI (1:154/750)
|