On Wed, 24 Sep 2008 01:48:09 -0700 (PDT), Philipp <>
wrote, quoted or indirectly quoted someone who said :
>Do I have a guarantee that object is not null when I call doStuff? Or
>is there a possible execution path which reaches .doStuf() with object
>being null?
It is quite nice. Not only can be you be absolutely sure new returned
an actual object, you can also be sure the constructor completed
normally right after the new.
Otherwise you would have an exception which you may optionally catch.
Of course you can be perverse and try to access the object in your
catch or after you have been notified of the problem.
--
Roedy Green Canadian Mind Products
http://mindprod.com/politics/harper.html
Anyone but Harper for Prime Minister of Canada