Rebind template(bug?)

Jack Applegame via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Aug 22 13:12:29 PDT 2016


On Monday, 22 August 2016 at 19:56:08 UTC, ag0aep6g wrote:
> So this is just to avoid typing out `class Pug : Dog {...} 
> class Dog : Animal {...} class Animal {...}`?
This allows you to create different inheritance chains with the 
same components quickly and easily. I don't know any use case, 
but looks funny:

T!("Animal", "Dog", "Pug") pug1;
T!("Life", "Animal", "Four-legged", "Pug") pug2;
T!("Dog", "Small", "Pug", ) smallPug;



More information about the Digitalmars-d-learn mailing list