Topic: preprocessing
Author: kearns@softrue.UUCP (Steven Kearns)
Date: 21 Jan 91 17:33:47 GMT Raw View
Given:
#define one(a, b) a b
What does "one((c,d), {c,d})" expand to?
If {} are considered parentheses, then arm 16.3 would suggest
"(c,d) {c,d}", otherwise I might expect an error because
it is interpreted as one("(c,d)", "{c", "d}").
********************************************************
* Steven Kearns ....uunet!softrue!kearns *
* Software Truth softrue!kearns@uunet.uu.net *
********************************************************
Author: diamond@jit345.swstokyo.dec.com (Norman Diamond)
Date: 22 Jan 91 05:30:06 GMT Raw View
In article <1.UUL1.3#8618@softrue.UUCP> kearns@softrue.UUCP (Steven Kearns) writes:
>#define one(a, b) a b
>What does "one((c,d), {c,d})" expand to?
>If {} are considered parentheses, then arm 16.3 would suggest
>"(c,d) {c,d}", otherwise I might expect an error because
>it is interpreted as one("(c,d)", "{c", "d}").
The "otherwise" is correct; you should get an error.
--
Norman Diamond diamond@tkov50.enet.dec.com
If this were the company's opinion, I wouldn't be allowed to post it.