Thread overview
strings and array literal mutability
Feb 24, 2015
Freddy
Feb 24, 2015
Tobias Pankrath
Feb 25, 2015
Ali Çehreli
February 24, 2015
Why are strings immutable but array literals are not?
February 24, 2015
On Tuesday, 24 February 2015 at 22:12:57 UTC, Freddy wrote:
> Why are strings immutable but array literals are not?

Because string is an alias for immutable(char).
February 25, 2015
On 02/24/2015 02:51 PM, Tobias Pankrath wrote:
> On Tuesday, 24 February 2015 at 22:12:57 UTC, Freddy wrote:
>> Why are strings immutable but array literals are not?
>
> Because string is an alias for immutable(char).

You meant immutable(char)[]. :)

Ali