Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!dali.cs.montana.edu!caen!zaphod.mps.ohio-state.edu!wuarchive!ukma!hsdndev!cmcl2!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.std.c Subject: Re: How to write Trigraph like character sequences in a string (was:Re: to "OR" or not to "OR") Message-ID: <16313@smoke.brl.mil> Date: 31 May 91 18:43:03 GMT References: Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 14 In article minar@reed.edu writes: >>>> What if I want to use the sequence "??!" within a string? >easy. Use a compiler that is fully ANSI, but lets you turn off >trigraphs. Excuse me -- if a compiler variant does not support trigraphs then it should not be called "ANSI" (as in "conforming to the ANSI C standard"). Standard conformance is a well-defined and useful property; let's not introduce confusion about what the phrase "ANSI C" means by applying it to deviant implementations. That being said, I also have to take issue with the idea of relying on a compiler "switch" for correct program semantics. There are standard ways to meet the requirement; no need to resort to such kludgery.