Macro names imbedded in pp-numbers [repost]
Doug Gwyn
gwyn at smoke.BRL.MIL
Sun Nov 19 12:21:20 AEST 1989
In article <31615 at watmath.waterloo.edu> datanguay at watmath.waterloo.edu (David Adrien Tanguay) writes:
>However, there might be a statement elsewhere that says that a
>pre-processor token can be converted into a sequence of tokens.
No; the conversion in translation phase 7 is one-to-one.
>This problem was brought to the committee's attention, but it took them
>a while to understand the problem (they thought everybody was complaining
>about the concept of a pre-processor number, rather than the specific
>definition). By the time they did figure it out, they had already declared
>that the botched definition would stand. (Hopefully a committee member will
>inject some reality into the previous sentence.) Oh well, you should be
>using white space anyway.
This is misleading, because whenever really solid arguments were made,
X3J11 was always willing to fix a demonstrated error in the draft
specification; there were numerous occasions when this did occur.
As I recall the committee sentiment, it wasn't felt that this slightly
over-generous glomming onto source characters for pp-numbers posed a
serious practical problem, and it did drastically simplify that part
of the preprocessor. The trade-off seemed worthwhile.
More information about the Comp.std.c
mailing list