Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!pa.dec.com!jrdzzz.jrd.dec.com!tkou02.enet.dec.com!jit345!diamond From: diamond@jit345.swstokyo.dec.com (Norman Diamond) Newsgroups: comp.std.c Subject: Re: wchar_t values Message-ID: <1991Apr1.065249.25920@tkou02.enet.dec.com> Date: 1 Apr 91 06:52:49 GMT References: <990@sranha.sra.co.jp> <15640@smoke.brl.mil> Sender: usenet@tkou02.enet.dec.com (USENET News System) Reply-To: diamond@jit345.enet@tkou02.enet.dec.com (Norman Diamond) Organization: Digital Equipment Corporation Japan , Tokyo Lines: 14 In article <15640@smoke.brl.mil> gwyn@smoke.brl.mil (Doug Gwyn) writes: >In article <990@sranha.sra.co.jp> erik@sra.co.jp (Erik M. van der Poel) writes: >>Which of the following two conditions is the correct interpretation of >>the ANSI C standard: >> ('c' == L'c') >> ('c' == ((char) L'c')) >Neither one, although the first one is close. The numerical values >of these two (possibly distinct) integer types shall be the same. Huh? When they have the same numerical value and both are integer types, how is it possible for them to not compare equal? -- Norman Diamond diamond@tkov50.enet.dec.com If this were the company's opinion, I wouldn't be allowed to post it.