About variadic in functions and dstring type

Janice Caron caron800 at googlemail.com
Tue Jan 22 11:51:44 PST 2008


On 1/22/08, torhu <no at spam.invalid> wrote:
> dchar is a 32-bit type, for storing a UTF-32 code unit.  dstring is an
> array of dchar, in other words a UTF-32 string.  wchar and wstring are
> for UTF-16.

What dstring is varies from version to version of D, but it's always
the correct type to use for strings.

In D1.x, dstring is an alias for dchar[]
In early D2.x, dstring was an alias for const(dchar)[]
In current D2.x, dstring is an alias for invariant(dchar)[]



More information about the Digitalmars-d mailing list