Thread View: gnu.g++.bug
2 messages
2 total messages
Started by David Detlefs
Fri, 08 Dec 1989 21:45
'catch' as keyword considered unfortunate
Author: David Detlefs
Date: Fri, 08 Dec 1989 21:45
Date: Fri, 08 Dec 1989 21:45
21 lines
1348 bytes
1348 bytes
Michael -- Could I register a request that some future release of G++ have a mode in which (at least) the exception handling mechanism is disabled? I have to compile code I don't own (Mach include files) that happen to use 'catch' as a structure field tag. G++ can't compile these include files; I have to go through some hassle to get things to work. I can't really see myself going to the people in charge of these files and saying, "Uh, could you please not use 'catch' as a name?" I think they would have a legitimate objection if they said, well, this is a include file for C, and we're willing to some work to make it C++, but if G++ is going off and defining a new language... (Note that I'm not accusing anyone of this, just proposing it as a somewhat understandable objection.) In more generality: it would be nice if there were an AT&T compatibility mode. For what it's worth... Dave
'catch' as keyword considered unfortunate
Author: Michael Tiemann
Date: Fri, 08 Dec 1989 21:40
Date: Fri, 08 Dec 1989 21:40
6 lines
784 bytes
784 bytes
C++ 2.0 reserves `catch', I'm just following along. I disable words reserved for the experimental GNU exception handling code by default. Look in cplus-lex.c for UNSET_RESERVED_WORD for how to do this easily. Handle `catch' there, and you are set. Michael
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads