T[new]

Lars T. Kyllingstad public at kyllingen.NOSPAMnet
Mon Aug 10 01:15:08 PDT 2009


Walter Bright wrote:
> Kagamin wrote:
>> Of what type will strings be?
> 
> immutable(char)[]

I've always wondered: Why are strings of type immutable(char)[], and not 
immutable(char[])?

I mean, there is no point in allowing resizing of strings, when 
assigning to the new elements is impossible.

-Lars



More information about the Digitalmars-d mailing list