Re: Very strange compilation error

2014-10-16 Thread John Colvin via Digitalmars-d-learn
On Wednesday, 15 October 2014 at 21:28:05 UTC, Nils Boßung wrote: On Wednesday 15 October 2014 22:13, John Colvin wrote: On Wednesday, 15 October 2014 at 19:29:27 UTC, Jack Applegame wrote: I don't understand why this code doesn't compile: http://dpaste.dzfl.pl/dfd8df7f80ad that should be

Very strange compilation error

2014-10-15 Thread Jack Applegame via Digitalmars-d-learn
I don't understand why this code doesn't compile: http://dpaste.dzfl.pl/dfd8df7f80ad

Re: Very strange compilation error

2014-10-15 Thread John Colvin via Digitalmars-d-learn
On Wednesday, 15 October 2014 at 19:29:27 UTC, Jack Applegame wrote: I don't understand why this code doesn't compile: http://dpaste.dzfl.pl/dfd8df7f80ad that should be immutable(ubyte)[] not immutable ubyte[] which is equivalent to immutable(ubyte[]). You can't overwrite immutable data,

Re: Very strange compilation error

2014-10-15 Thread Nils Boßung via Digitalmars-d-learn
On Wednesday 15 October 2014 21:29, Jack Applegame wrote: I don't understand why this code doesn't compile: http://dpaste.dzfl.pl/dfd8df7f80ad Immutability issues with unions ring a bell for me. This may be related to issue 12885 [1] which is the result of dmd pull #2665 [2] which even

Re: Very strange compilation error

2014-10-15 Thread Nils Boßung via Digitalmars-d-learn
On Wednesday 15 October 2014 22:13, John Colvin wrote: On Wednesday, 15 October 2014 at 19:29:27 UTC, Jack Applegame wrote: I don't understand why this code doesn't compile: http://dpaste.dzfl.pl/dfd8df7f80ad that should be immutable(ubyte)[] not immutable ubyte[] which is equivalent to