T[new]

Walter Bright newshound1 at digitalmars.com
Mon Aug 10 01:25:29 PDT 2009


Lars T. Kyllingstad wrote:
> I've always wondered: Why are strings of type immutable(char)[], and not 
> immutable(char[])?

So:

    string a = "hello";
    a = "foo";

works.



More information about the Digitalmars-d mailing list