I want to add a Phobos module with template mixins for common idioms.

Jonathan M Davis jmdavisProg at gmx.com
Fri May 24 11:13:07 PDT 2013


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


More information about the Digitalmars-d mailing list