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).
Tobias Pankrath via Digitalmars-d-learn Tue, 24 Feb 2015 14:57:14 -0800
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).