Path: utzoo!attcan!uunet!husc6!uwvax!oddjob!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.lang.c Subject: Re: trigraphs in X3J11 Message-ID: <11655@mimsy.UUCP> Date: 24 May 88 21:07:49 GMT References: <5215@ico.ISC.COM> <10949@apple.Apple.Com> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 25 In article <10949@apple.Apple.Com> lenoil@Apple.COM (Robert Lenoil) writes: >... why not simply extend the backslash escape mechanism to be valid >outside of strings? Backslash is one of the characters that cannot be represented in some character sets (the trigraph ??/ is a synonym for it in the dpANS). >This would allow the use of #defines to perform the same function >as trigraphs: > >#define ??< \173 /* open brace */ >#define ??> \175 /* close brace */ This would be almost as big a change as trigraphs; the #define syntax is now # define and `??' is not part of an . I think the `#trigraph' suggestion is a suitable way to keep trigraphs from affecting old code and/or infesting new code. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris