Assume that you have an OBJECT and its constructor allcoates a memory.
How can I let new operator return NULL, if the memory allcoation inside the constructor of OBJECT fails.
buffer = new double[bufferSize]; //This fails!
OBJECT * obj;
obj =new OBJECT( HUGE_NUMBER); // If constructor of OBJECT decides that there is an error this 'new' must return NULL.