Re: Backslash n [OT] was Line Separator and Paragraph Separator

From: John Cowan (jcowan@reutershealth.com)
Date: Thu Oct 23 2003 - 15:50:57 CST


jon@hackcraft.net scripsit:

> But if ('\n'=='\u000A') should always be true, because ISO 14882 defines \n as
> LF and defines \uNNNN as "that character whose short name in ISO/IEC 10646 is
> 0000NNNN" and the character whose short name in ISO/IEC 10646 is 00000000A is
> LF.

It's not clear to me that this is true in C++. In C, it's definitely false,
because character constants in C represent integers, and '\n' need not represent
the integer 10, whereas '\u000A' must.

-- 
Do NOT stray from the path!             John Cowan <jcowan@reutershealth.com>
        --Gandalf                       http://www.ccil.org/~cowan


This archive was generated by hypermail 2.1.5 : Thu Jan 18 2007 - 15:54:24 CST