Programming in D by Ali Çehreli
vino via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Oct 17 23:53:19 PDT 2016
On Monday, 17 October 2016 at 18:17:24 UTC, Ali Çehreli wrote:
> On 10/17/2016 11:10 AM, vino wrote:
>> [...]
>
> What version is your compiler? My version is DMD64 D Compiler
> v2.072.0-b2.
>
> Trying the code with a recent compiler produces three
> compilation errors for the following three lines
>
> immSlice ~= 3;
> immSlice[0] = 3;
> immSlice.length = 1;
>
> Error: cannot modify immutable expression immSlice
> Error: cannot modify immutable expression immSlice[0]
> Error: cannot modify immutable expression immSlice
>
> Ali
Hi Ali,
I am using DMD64 D Compiler v2.071.2-b5
More information about the Digitalmars-d-learn
mailing list