On Tue, 2008-02-26 at 16:21 -0500, Pietro Gagliardi wrote:
> And it's wonderful that the C standard defines a character literal as  
> so:
> 
>       char-literal:
>               ' characters '
>       characters:
>               character
>               characters character
> 
> (or something like that)
> 
> Question, then: why do we need wchar_t/Rune?

The definitions are (<> used to indicate non-terminals in the
grammar...):

(6.4.4.4) character-constant:
        ' <c-char-sequence> '
        L' <c-char-sequence> '

(6.4.4.4) c-char-sequence:
        <c-char>
        <c-char-sequence> <c-char>

(6.4.4.4) c-char:
        any member of the source character set except the single-quote ',
backslash \, or new-line character

        <escape-sequence>

Steven Vormwald
[EMAIL PROTECTED]


Reply via email to