subclassing templated class

spir denis.spir at gmail.com
Sun Dec 26 07:09:28 PST 2010


On Sun, 26 Dec 2010 17:54:22 +0300
Stanislav Blinov <stanislav.blinov at gmail.com> wrote:

> > Hello,
> >
> > If I have
> > 	class Node (Element) {...}
> > can I subtype it like with
> > 	class Leaf (Element) : Node (Element) {...}
> > or such?
> >
> > Denis  
> 
> Absolutely:
> 
> class Leaf(Element) : Node!Element {...}

Thank you! That's the syntactic bit I was missing. Logical, indeed...
Denis
-- -- -- -- -- -- --
vit esse estrany ☣

spir.wikidot.com



More information about the Digitalmars-d-learn mailing list