Jeremie Pelletier, el 10 de agosto a las 13:01 me escribiste: > Lars T. Kyllingstad Wrote: > > > 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 > > The problem with immutable(char)[] was that any string can be resized, even > slices. > > Walter: what will the string types be aliased to now: still immutable(char)[] > or immutable(char)[new]?
From: Walter Bright <newshou...@digitalmars.com> Date: Mon, 10 Aug 2009 01:01:56 -0700 Subject: Re: T[new] User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) Kagamin wrote: >Of what type will strings be? immutable(char)[] >Of what type will be the result of concatenation? T[new] -- Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/ ---------------------------------------------------------------------------- GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05) ---------------------------------------------------------------------------- El techo de mi cuarto lleno de galaxias