Re:C2x: the next real revision of the C standard
by rurban on Monday November 12, 2018 @03:12PM
(#18435300)
char8_t is the type, u8 is just a prefix for constants, like u8"xxx";
And it's only in C11++, not C11 AFAIK.
[ Parent
| on HN ]
Re:C2x: the next real revision of the C standard
by The_rationalist on Monday November 12, 2018 @03:58PM
(#18435746)
You are right, this is only for string litterals (so read only).But Wikipedia C11 mention the feature, what do you mean by c11++ ? Btw c17 added 0 feature.
Re:C2x: the next real revision of the C standard
by bumblebritches5 on Monday November 12, 2018 @11:13PM
(#18438530)
u8 exists for string constants, but not character constants.
they're proposing to add u8 as a character constant prefix.