T[new]

Lars T. Kyllingstad public at kyllingen.NOSPAMnet
Mon Aug 10 01:42:41 PDT 2009


Walter Bright wrote:
> 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.


Ah, of course. :) Thanks.

-Lars



More information about the Digitalmars-d mailing list