Multidimensional array
monarch_dodra
monarchdodra at gmail.com
Fri Jul 5 02:58:54 PDT 2013
On Friday, 5 July 2013 at 01:43:45 UTC, bearophile wrote:
> There is a way to specify the type of a string, so this gives
> errors:
>
> void main() {
> string s1 = "xx"d;
> string s2 = "xx"w;
> wstring s3 = "xx"d;
> }
>
> Bye,
> bearophile
Also, don't forget the often forgotten explicit c suffix:
dstring s = "hello"c; //Error: cannot implicitly convert
expression ("hello"c) of type string to immutable(dchar)[]
More information about the Digitalmars-d-learn
mailing list