Postfix string literal alternative suggestion
Janice Caron
caron800 at googlemail.com
Sat Feb 9 13:28:29 PST 2008
On 09/02/2008, Walter Bright <newshound1 at digitalmars.com> wrote:
> You can already use the syntax:
>
> cast(string)"foo";
> cast(wstring)"bar";
> cast(dstring)"abc";
>
> if you need to.
I did not know that. That seems counterintuitive. I would not expect a
simple cast to perform UTF conversion. (I would have expected "bar"
and "abc" both to have type invariant(char)[3]).
More information about the Digitalmars-d
mailing list