October 23, 2005 Re: Universal character names not supported | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | In article <djfnnu$1i1f$1@digitaldaemon.com>, Walter Bright says... > > >"Sean Kelly" <sean@f4.ca> wrote in message news:djehj1$jso$1@digitaldaemon.com... >> In article <djedqc$h0e$1@digitaldaemon.com>, Unknown W. Brackets says... >> > >> >That's because your code is wrong. >> > >> >void \u00A0() >> > >> >Is like: >> > >> >void 'a'() >> >> Is it? > >Yes, it's wrong. D does not support the \u or \U syntax for identifier characters. D supports actual embedded unicode alpha characters as identifier characters. Similarly, D does not support digraphs or trigraphs. Thanks for clearing that up. The reference to Appendix D of the C99 spec threw me, as it referred to these characters. I suppose I should have realized that you meant the letters themselves rather than the formatting. >I've also never, ever seen anyone use \u notation in C code outside of a test suite. Ditto for both trigraphs and digraphs. Me either. I stumbled across that portion of the spec yesterday and tried it on a whim :-) Sorry for the confusion. Sean |
October 23, 2005 Re: Universal character names not supported | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sean Kelly | Sean Kelly wrote:
> In article <djfnnu$1i1f$1@digitaldaemon.com>, Walter Bright says...
>
>>
>>"Sean Kelly" <sean@f4.ca> wrote in message
>>news:djehj1$jso$1@digitaldaemon.com...
>>
>>>In article <djedqc$h0e$1@digitaldaemon.com>, Unknown W. Brackets says...
>>>
>>>>That's because your code is wrong.
>>>>
>>>>void \u00A0()
>>>>
>>>>Is like:
>>>>
>>>>void 'a'()
>>>
>>>Is it?
>>
>>Yes, it's wrong. D does not support the \u or \U syntax for identifier
>>characters. D supports actual embedded unicode alpha characters as
>>identifier characters. Similarly, D does not support digraphs or trigraphs.
>
>
> Thanks for clearing that up. The reference to Appendix D of the C99 spec threw
> me, as it referred to these characters. I suppose I should have realized that
> you meant the letters themselves rather than the formatting.
>
>
>>I've also never, ever seen anyone use \u notation in C code outside of a
>>test suite. Ditto for both trigraphs and digraphs.
>
>
> Me either. I stumbled across that portion of the spec yesterday and tried it on
> a whim :-) Sorry for the confusion.
>
>
> Sean
>
I have come across them in obfuscated C code :-)
|
Copyright © 1999-2021 by the D Language Foundation