D needs...

Jack Applegame via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Thu May 14 06:26:16 PDT 2015


What about mutable references to immutable/shared/const classes?

class A {}

immutable(A)[int] aa;
aa[1] = new immutable A;    // doesn't compile

Rebindable!(immutable(A))[int]; // looks like ugly shamefull 
workaround.



More information about the Digitalmars-d-announce mailing list