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
