Article View: comp.std.c
Article #100Re: preprocessing subterfuge
From: Murray Nesbitt
Date: Sun, 09 Aug 1992 10:46
Date: Sun, 09 Aug 1992 10:46
26 lines
1116 bytes
1116 bytes
woolsey@mri.com (Jeff Woolsey) writes:
>Basically, is the following module legal?
>#define it 1,2
>#define that(a,b) a+b
>void f(void) {
> that(it);
> }
>I've been reading the standard all afternoon looking for supporting
>evidence one way or the other on this one, and have been unable to
>convince myself of the disposition of this code fragment (reading the
>standard is usually like this, but eventually something falls out
>and settles it).
>Your advice, please?
My advice? Two minutes with a compiler would have saved you an
afternoon with the Standard.
Murray
--
Until my site's in the maps, please reply to "druid!pseudo!mjn".
Technical Details
Message-ID:
<MJN.92Aug9024600@pseudo.uucp>Path:
arc1-ca.pugleaf.net!sparky!uunet!uunet.ca!geac!r-node!pseudo!mjnReferences:
<1992Aug7.001510.13418@mri.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c Path: arc1-ca.pugleaf.net!sparky!uunet!uunet.ca!geac!r-node!pseudo!mjn From: mjn@pseudo.uucp (Murray Nesbitt) Subject: Re: preprocessing subterfuge Organization: Private system in Toronto, ON Date: Sun, 9 Aug 1992 10:46:00 GMT Message-ID: <MJN.92Aug9024600@pseudo.uucp> In-Reply-To: woolsey@mri.com's message of 7 Aug 92 00:15:10 GMT References: <1992Aug7.001510.13418@mri.com> Sender: mjn@pseudo.uucp (Murray Nesbitt) Lines: 26