home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.gcc.help
- Path: sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!osf.ORG!meissner
- From: meissner@osf.ORG
- Subject: GCPP extension
- Message-ID: <9210092001.AA28325@curley.osf.org>
- Sender: daemon@cis.ohio-state.edu
- Organization: GNUs Not Usenet
- References: meissner@osf.ORG
- Distribution: gnu
- Date: Fri, 9 Oct 1992 12:01:05 GMT
- Lines: 30
-
- (question about adding an extension to automatically add trailing
- slashes for macro definitions):
-
- | this is very difficult to edit, boring, and often one forget the backslash, ...
- | so why not extend the preproc to handle a more complex construct like
- |
- | #defmacro foobar(arg_one, arg_two) {
- | if (dummy_function (arg_one))
- | arg_two = other_dummy (arg_two);
- | else
- | arg_two = arg_one;
- | }
- | #endmacro
-
- I think this proposed extension should not be added to GCC. For one
- thing, you have people that do things like:
-
- #define BEGIN {
- #define END }
-
- and such. I have seen real live exception packages written that have
- macros open and close scopes with {}, so it's not just Pascal-dweebs
- trying to covert C into their language. I think that it will break
- more code than it's worth.
-
- --
- Michael Meissner email: meissner@osf.org phone: 617-621-8861
- Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142
-
- You are in a twisty little passage of standards, all conflicting.
-