Macro parameters getting substituted into strings

Alan J Rosenthal flaps at dgp.toronto.edu
Wed Apr 6 03:04:30 AEST 1988


Discussing the removal of macro replacement inside strings, John
Gilmore complains that this will break dozens of application programs,
both in sysV and in BSD.

In article <10194 at ulysses.homer.nj.att.com> jss at hector (Jerry Schwarz) writes:
>Once again.  The adoption of the standard will not break anything.
>New compilers will break things.  But compiler vendors can support
>compatibility modes for as long as they choose.

In this area, the compiler cannot support backward compatibility.  Given
a definition:

	#define a(b)"a b c"

what does a(x) substitute to?  ANSI says "a b c"; existing practice
says "a x c"; there is no way to accomodate both.

ajr

-- 
"Comment, Spock?"
"Very bad poetry, Captain."




More information about the Comp.lang.c mailing list