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