subclassing templated class
    Simen kjaeraas 
    simen.kjaras at gmail.com
       
    Sun Dec 26 06:58:14 PST 2010
    
    
  
Stanislav Blinov <stanislav.blinov at gmail.com> wrote:
> 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 {...}
You're right. I did not notice the lack of an exclamation mark.
-- 
Simen
    
    
More information about the Digitalmars-d-learn
mailing list