On Friday, May 24, 2013 17:42:59 Dmitry Olshansky wrote: > There was a pull that allowed to separate qualifier of instance from > reference (handle) looking like this: > > ref const(Object) refToConst; > > ref Object mutableTlsRef; > Object mutableTlsRef; //same as above > > ref const Object constRefToConst; > const Object constRefToConst; //ditto > > The fact that we don't have it is part of the reason I don't like doing > OOP in D at all.
Lacking a proper language solution, we could create something similar to Rebindable but for shared. - Jonathan M Davis