Why trigraphs? What happened to the DIgraphs?

Karl Heuer karl at haddock.ISC.COM
Sat Jun 18 00:44:29 AEST 1988


In article <1302 at ark.cs.vu.nl> maart at cs.vu.nl (Maarten Litmaath) writes:
>Why use trigraphs if digraphs are available?
>	[ = .(
>	] = .)

Sorry, but ".)" is already a valid sequence in C code:  x=cos(1.)
The trigraphs have the property that no existing code contains them outside of
comments and strings.

If you're going to followup with an improved proposal, please note that there
are nine characters ( #[\]^{|}~ ) to be handled.

Karl W. Z. Heuer (ima!haddock!karl or karl at haddock.isc.com), The Walking Lint



More information about the Comp.std.c mailing list