Filed as Bug
Peter Alexander
peter.alexander.au at gmail.com
Tue Apr 8 14:38:06 PDT 2014
On Tuesday, 8 April 2014 at 21:13:47 UTC, Jeroen Bollen wrote:
> Here we go: https://d.puremagic.com/issues/show_bug.cgi?id=12549
Not a bug:
What you are asking for is to allow immutable(T)** and int** to
convert to const(T)**
int a = 0;
int* pa = &a;
const(int)** ppa = &pa; // not currently allowed
immutable(int) b = 1;
*ppa = &b; // equivalent to pa = &b!!! i.e. pa (mutable) now
points at b (immutable)!!!
More information about the Digitalmars-d
mailing list