How to report when an constructor fails???

Started by
20 comments, last by Spartacus 21 years, 8 months ago
quote:Original post by JackNathan
Using a nearly empty constructor and an Init(...) member function to do the real work is an option.


That may be real ugly for some.

Constructor try blocks are not meant to meant to make the code exception safe. You still need to practice RAII (religiously I may add)

As for how constructor try blocks can be useful, I found the article
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=user-0409991408120001%40aus-as3-128.io.com&rnum=4
Advertisement
Hey THANKS for the help everyone, your help is appreciated!!! Actually I didn''t expect THAT many replies. Thanks to everyone who took their time and replyed to my question. I think I was not the only one learning something here

Spartacus


Real programmers don''t document, if it was hard to write it should be hard to understand


Real programmers don't document, if it was hard to write it should be hard to understand

This topic is closed to new replies.

Advertisement