Type-Strict Indexes: IndexedBy

via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Feb 17 05:38:40 PST 2015


On Monday, 16 February 2015 at 20:17:55 UTC, anonymous wrote:
> Remove that `alias _r this;`. You don't want to forward 
> opIndex, so you can't use alias this which forwards everything 
> that doesn't compile. opDispatch may be an option to forward 
> everything but opIndex.

This looses most of the meaning of my idea. I still want my range 
to inherit all the powers of its wrapped range.

Is there no way to disable member functions in D?


More information about the Digitalmars-d-learn mailing list