home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #23 / NN_1992_23.iso / spool / gnu / gcc / help / 2294 < prev    next >
Encoding:
Text File  |  1992-10-09  |  1.4 KB  |  43 lines

  1. Newsgroups: gnu.gcc.help
  2. Path: sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!osf.ORG!meissner
  3. From: meissner@osf.ORG
  4. Subject: GCPP extension
  5. Message-ID: <9210092001.AA28325@curley.osf.org>
  6. Sender: daemon@cis.ohio-state.edu
  7. Organization: GNUs Not Usenet
  8. References: meissner@osf.ORG
  9. Distribution: gnu
  10. Date: Fri, 9 Oct 1992 12:01:05 GMT
  11. Lines: 30
  12.  
  13. (question about adding an extension to automatically add trailing
  14. slashes for macro definitions):
  15.  
  16. | this is very difficult to edit, boring, and often one forget the backslash, ...
  17. | so why not extend the preproc to handle a more complex construct like
  18. | #defmacro foobar(arg_one, arg_two)    {
  19. |                       if (dummy_function (arg_one)) 
  20. |                         arg_two = other_dummy (arg_two); 
  21. |                       else 
  22. |                         arg_two = arg_one; 
  23. |                     }
  24. | #endmacro
  25.  
  26. I think this proposed extension should not be added to GCC.  For one
  27. thing, you have people that do things like:
  28.  
  29.     #define BEGIN {
  30.     #define END }
  31.  
  32. and such.  I have seen real live exception packages written that have
  33. macros open and close scopes with {}, so it's not just Pascal-dweebs
  34. trying to covert C into their language.  I think that it will break
  35. more code than it's worth.
  36.  
  37. --
  38. Michael Meissner    email: meissner@osf.org        phone: 617-621-8861
  39. Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142
  40.  
  41. You are in a twisty little passage of standards, all conflicting.
  42.