home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / std / c / 3396 < prev    next >
Encoding:
Text File  |  1993-01-22  |  1.7 KB  |  36 lines

  1. Newsgroups: comp.std.c
  2. Path: sparky!uunet!cs.utexas.edu!sun-barr!decwrl!deccrl!news.crl.dec.com!news!nntpd.lkg.dec.com!jit533.jit.dec.com!diamond
  3. From: diamond@jit533.jit.dec.com (Norman Diamond)
  4. Subject: Re: Empty macro arguments
  5. Message-ID: <1993Jan22.073803.13745@nntpd.lkg.dec.com>
  6. Sender: usenet@nntpd.lkg.dec.com (USENET News System)
  7. Reply-To: diamond@jit.dec.com (Norman Diamond)
  8. Organization: Digital Equipment Corporation Japan , Tokyo
  9. References: <16355@goanna.cs.rmit.oz.au> <1993Jan18.065413.26508@nntpd.lkg.dec.com> <727657228@majors3.cs.duke.edu>
  10. Date: Fri, 22 Jan 1993 07:38:03 GMT
  11. Lines: 23
  12.  
  13. In article <727657228@majors3.cs.duke.edu> dsb@duke.cs.duke.edu (D. Scott Bigham) writes:
  14. >diamond@jit.dec.com (Norman Diamond) :
  15. >>In article <16355@goanna.cs.rmit.oz.au> ok@goanna.cs.rmit.oz.au (Richard A. O'Keefe) writes:
  16. >>>Am I likely to run into any trouble if I just go ahead and use what the
  17. >>>standard itself proposes as an extension?
  18.  
  19. >>I don't see any wording in the standard that proposes an extension. [...]
  20.  
  21. >Does this imply that a conforming compiler faced with the [...] fragment
  22. >#define fred(a,b,c) a b c
  23. >fred(1,,3)
  24. >is _required_ to issue a diagnostic?
  25.  
  26. No.  If this fragment violated a constraint, then the implementation would
  27. have to issue a diagnostic while turning your keyboard into a mousetrap.
  28. However, this fragment only violates semantics, so the implementation can
  29. omit the diagnostic while turning your keyboard into a mousetrap (or can
  30. issue a diagnostic if it wishes, or can proceed with b representing empty
  31. like you really wanted if it wishes).
  32. --
  33. Norman Diamond                diamond@jit.dec.com
  34. If this were the company's opinion, I wouldn't be allowed to post it.
  35. Pardon me?  Or do I have to commit a crime first?
  36.