JdP>>> Borland's C++ compilers *do* support multi-character
JdP>>> character literals as a language extension.
WM>> No offense to Borland, but... in God's name, why?
KK> Some languages have more than 256 characters and require
KK> more than eight bits to handle the whole character set.
KK> The ANSI standard actually supports a large character type.
Multi-character character literals are not the same as wide character
literals. They are, in fact, two different things. Hence:
'c' ; // Single character character literal, type `char'
'ac' ; // Multi-character character literal, type `int'
L'c' ; // Single character wide character literal, type `wchar_t'
L'ac' ; // Multi-character wide character literal, type `wchar_t'
`int' isn't the same as `wchar_t' in Standard C++, either.
¯ JdeBP ®
--- FleetStreet 1.19 NR
---------------
* Origin: JdeBP's point, using Squish (2:440/4.3)
|