NULL
Tag: Computer/Programming
-
A new C++ Journal
The C++ Source is a new online journal which tries to build a "new peer-reviewed online ‘zine for the world of C++". It runs in the realm of Artima Weblogs which has always good articles around web- and general development in the IT branche.
Some other C++-development related sites:
- The Code Project
- OOPWeb.com
- C/C++ Users Journal (dead now, alternative: Archive )
-
Wikipedia dump
NULL
-
Update on throw declarations
My stats showed that my post regarding throw declarations in C++ gets hit directly through search engines quite often.
I updated the information there so that visitors are not left alone with my tech-info-lacking ranting and leave with no better information about their problem.
-
throw in depth
What I meant recently with "Never use throw-declaration in C++" is following:
int throwing(int i) throw (exception_A) { if(i > 0) throw exception_B; return i; }
When compiling on ie. AIX no error is shown during compiling, but if the exception_B gets ever thrown, it magically converts into an uncatchable unknown_exception and crashes your app. I’m not sure if Linux also makes it uncatchable, but there are also no signs of dangers there during compiling.
Microsoft’s Visual Studio ships around this elegantly: It just ignores any throw()-declaration everywhere.
I understand why no compiler enforces this to be correct, because of compatibility with old code and huge catch-statements with bad exception-derivates, but I don’t know why no compiler has even an option to enforce the correctness of throw-declarations. This would save many people much headache when porting software between platforms.