Path: utzoo!utgpu!water!watmath!clyde!bellcore!faline!thumper!ulysses!gamma!pyuxp!pyuxe!pyuxf!boby
From: boby@pyuxf.UUCP (robert yaeger)
Newsgroups: comp.lang.c
Subject: Re: trigraphs in X3J11
Summary: trigraphs in use
Message-ID: <343@pyuxf.UUCP>
Date: 1 Jun 88 17:10:46 GMT
References: <1988May25.212902.1904@utzoo.uucp> <5215@ico.ISC.COM>, <3655@pasteur.Berkeley.Edu>
Organization: Bell Communications Research
Lines: 24
Posted: Wed Jun  1 13:10:46 1988

In article <3655@pasteur.Berkeley.Edu>, faustus@ic.Berkeley.EDU.UUCP writes:
> Nobody has said what the existing practice is with regard to European
> character sets.  Do Europeans just use an ascii keyboard when they want
> to use C?  Or do they use u-umlaut for backslash (or whatever it is)?
> Trigraphs are so ugly I can't believe anybody actually uses them, or
> will use them if they're part of C.
> 
> I think trigraphs are a trick of American terminal manufacturers who
> want to fool Europeans into thinking they can use their terminals for
> writing programs.

Well just to let you know, trigraphs are indeed needed in the good ol' USA.
Try writing MVS/c programs using a 3270! Fortunately, the only trigraphs
needed are the ??( and ??) ( ie., [ and ] ). 

The practice we've adopted is to code trigraphs only when declaring arrays.
All references to these arrays in the code use ptr arithmetic. 
This contains the ugliness of them to the declare sections.

-- 

Bob Yaeger 
uucp : ...!inhp4!bellcore!pyuxf!boby 
phone: 1-201-699-5128