Re: strings and array literal mutability
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
strings and array literal mutability
Why are strings immutable but array literals are not?
Re: strings and array literal mutability
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).