The pull request of the day: 3998
H. S. Teoh via Digitalmars-d
digitalmars-d at puremagic.com
Tue Oct 7 11:20:43 PDT 2014
On Tue, Oct 07, 2014 at 05:58:40PM +0000, Dicebot via Digitalmars-d wrote:
> On Tuesday, 7 October 2014 at 17:36:24 UTC, Jonathan wrote:
> >What are some "common uses" for multiple aliasing? I understand the
> >feature, but curious where it would be commonly employed.
> >
> >To me, this allows structs to have something like inheritance. You
> >add a property for another struct that acts like an interface and
> >alias that struct to the current one. Thoughts?
>
> Multiple inheritance of implementation for structs + implicit casting
> in one basket
Also, transparent proxying of heterogenous interfaces. TDPL contains an
example (or two) of this.
T
--
Without geometry, life would be pointless. -- VS
More information about the Digitalmars-d
mailing list