Re: Garbage collection in C++
On 2008-11-21 23:08:57 -0500, Sam <sam@email-scan.com> said:
If an implementation's wchar_t is not big enough to support all Unicode
values, then it's an implementation problem.
Despite your assertion that it "supports [Unicode] very well"?
It is not a language problem.
I'm not sure I understand this logic. Ok, so the C++ language's definition
of wchar_t is too vague, and implementations claim to be in compliance
without using a wchar_t that's wide enough to support the full Unicode
range.
Whatever. The point is that wchar_t isn't required to do the things
that are needed to suppport Unicode. Hell, Unicode didn't exist at the
time that wchar_t was invented.
Well, then obvious solution is to define wchar_t to explicitly be
wide enough for the full Unicode range.
Thus breaking existing implementations and applications that use it.
Why introduce string types that
explicitly use 16 or 32 bit characters?
Because they do what people need.
But I gather from all this noise that you no longer belive that wchar_t
"supports [Unicode] very well".
--
Pete
Roundhouse Consulting, Ltd. (www.versatilecoding.com) Author of "The
Standard C++ Library Extensions: a Tutorial and Reference
(www.petebecker.com/tr1book)