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
Ali Çehreli via Digitalmars-d-learn Tue, 24 Feb 2015 16:20:47 -0800
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