trigraphs in X3J11
John Limpert
johnl at n3dmc.UUCP
Thu May 26 13:37:52 AEST 1988
I think a simple solution to this problem is possible. Why not
have the compiler print a warning if it detects a trigraph?
This would reduce the chances of breaking a program when it was
recompiled with an ANSI C compiler. If the warning was only
printed the first time a trigraph was encountered, it wouldn't
be too annoying. Restricting the check to literal strings might
be worthwhile. Many compilers print warnings about constructs
that are legal, but are often unintentional coding errors.
--
John A. Limpert
UUCP: johnl at n3dmc.UUCP uunet!n3dmc!johnl
PACKET: n3dmc at n3dmc.ampr.org n3dmc at wa3pxx
More information about the Comp.lang.c
mailing list