home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / misc / 2698 < prev    next >
Encoding:
Text File  |  1992-07-25  |  1.4 KB  |  29 lines

  1. Newsgroups: comp.lang.misc
  2. Path: sparky!uunet!uunet.ca!canrem!telly!druid!darcy
  3. From: darcy@druid.uucp (D'Arcy J.M. Cain)
  4. Subject: Re: Simple preprocessor
  5. Message-ID: <1992Jul25.154630.6837@druid.uucp>
  6. Date: Sat, 25 Jul 1992 15:46:30 GMT
  7. References: <1992Jul18.170227.20219@thinkage.on.ca> <1992Jul20.172457.20496@druid.uucp> <1992Jul21.183044.22776@thinkage.on.ca>
  8. Organization: D'Arcy Cain Consulting
  9. Lines: 18
  10.  
  11. dat@thinkage.on.ca (David Adrien Tanguay) writes:
  12. >Not really, just one less character to have to escape, one less variant
  13. >international glyph to worry about. C may not use $, but other texts may.
  14. >I infer from your reason that the '(' after the '$' is optional (in some
  15. >contexts): i.e., $foo will expand the foo macro. I had thought otherwise.
  16.  
  17. The '(' after the '$' is only optional for single character macros.  This
  18. can still be a problem even though there are no single letter preprocessor
  19. directives.  "@DEFINE" could mean define a macro or it could mean expand
  20. macro "D" and append "EFINE" to the result.  The use you suggest would
  21. require the preprocessor to recognize some sort of punctuation (e.g. space)
  22. and that would limit or at least complicate its use as a general tool.
  23.  
  24. -- 
  25. D'Arcy J.M. Cain (darcy@druid.com)  |
  26. D'Arcy Cain Consulting              |   There's no government
  27. Toronto, Ontario, Canada            |   like no government!
  28. +1 416 424 2871          DoD#0082   |
  29.