Programming in D by Ali Çehreli
tcak via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Oct 17 12:16:47 PDT 2016
On Monday, 17 October 2016 at 18:20:00 UTC, cym13 wrote:
> On Monday, 17 October 2016 at 18:10:01 UTC, vino wrote:
>> [...]
>
> I don't see what you don't understand, you said it yourself:
> "neither the slice nor its elements can be modified". So you
> can't modify the elements of an immutable array. immSlice is
> an immutable array of which you are trying to modify an element.
I would expect him to see the first error on `immSlice ~= 3;`.
More information about the Digitalmars-d-learn
mailing list