From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Scott McCaskill" To: Subject: Re: #define catch? Date: Wed, 02 Aug 2000 09:50:00 -0000 Message-id: <030101bffca1$b107dd00$84011e0a@3dfx.com> References: <430F887D415DD1118C2700805F31ECF1037F129B@sota0005.cognos.com> X-SW-Source: 2000/msg00082.html ----- Original Message ----- From: "Bossom, John" To: "'Ross Johnson'" ; "Scott McCaskill" Cc: Sent: Wednesday, August 02, 2000 10:42 AM Subject: RE: #define catch? > "catch" is actually a keyword in C++... > This is true.. but I don't see what you're getting at. The fundamental problem I encountered is that this (legal) code: catch ( app_exception ) { } catch ( some_other_app_exception ) { } ..will be expanded to the following when using the macro in pthread.h: catch ( Pthread_exception_cancel ) { throw; } catch ( Pthread_exception_exit ) { throw; } catch ( app_exception ) { } catch ( Pthread_exception_cancel ) { throw; } catch ( Pthread_exception_exit ) { throw; } catch ( some_other_app_exception ) { } ..and VC++ will not compile that because of the existence of multiple handlers for Pthread_exception_cancel and Pthread_exception_exit.