Re: equivalent of c++ private inheritance with using

2012-10-14 Thread Dan
On Friday, 12 October 2012 at 23:05:27 UTC, Jonathan M Davis wrote: You can have the variable be private and alias a function which returns by ref instead of the variable itself. Something like class C { @property ref inout(Impl) get() inout { return _impl; } alias get this; private:

equivalent of c++ private inheritance with using

2012-10-12 Thread Dan
What is best way to get equivalent of C++ private inheritance combined with using declarations in the drived to expose some functionality. For example, suppose I want a basic RateCurve class that defers almost entirely to type Array as below. The problem is, once RateCurve is moved to a

Re: equivalent of c++ private inheritance with using

2012-10-12 Thread Jonathan M Davis
On Friday, October 12, 2012 23:10:47 Dan wrote: What is best way to get equivalent of C++ private inheritance combined with using declarations in the drived to expose some functionality. For example, suppose I want a basic RateCurve class that defers almost entirely to type Array as below. The