Hi, Adam wrote:
AS> Its still got bad idea stamped all over it. The object would AS> not get constructed, this is almost certainly doc'd somewhere. Mmm ... I'm not sure if I'd label that a disadvantage. When, I ask for the construction of an object and something goes wrong, I find it reasonable for the object not to get constructed. When compared to the C++ world, the situation after the exception being thrown from the constructor is very peaceful. As you pointed out, if you catch the exception (so you *know* construction wasn't successful), you get, instead of an object, a null reference. I really do not see the problem. Regards, Stefan =================================== This list is hosted by DevelopMentorŪ http://www.develop.com Some .NET courses you may be interested in: NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles http://www.develop.com/courses/gaspdotnetls View archives and manage your subscription(s) at http://discuss.develop.com