subclassing templated class

Stanislav Blinov stanislav.blinov at gmail.com
Sun Dec 26 06:54:22 PST 2010


On 12/26/2010 05:47 PM, spir 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 {...}


More information about the Digitalmars-d-learn mailing list