[Mono-list] A couple of questions...

Fergus Henderson fjh@cs.mu.oz.au
Wed, 15 Aug 2001 01:03:26 +1000


On 14-Aug-2001, develop <develop@wtfo.wtfo-guru.com> wrote:
> 2. I am fairly certain that the native type for "string" in Microsoft's .NET
> will be UNICODE.

Well, kind of.  The native "char" type in .NET is 16 bits.
Unicode characters don't all fit in 16 bits anymore, since Unicode 3.1.

So it will be either UCS-2 (the 16-bit subset of Unicode) or UTF-16
(full Unicode, encoded to fit in 16-bit units, meaning that some Unicode
characters will take be encoded in more than one "char").

> Will this be the case with Mono or will we opt for ANSI
> strings to be the native "string" type?

Mono will have to do the same as .NET, for binary compatibility and for
compliance with the ECMA specs.

-- 
Fergus Henderson <fjh@cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.