Recursive Templates

BCS ao at pathlink.com
Wed Jul 30 09:57:10 PDT 2008


Reply to Jarrett,

> "Koroskin Denis" <2korden at gmail.com> wrote in message
> news:op.ue3up2utenyajd at proton.creatstudio.intranet...
> 
>> How about, say, Set of Set of the self type? So that it becomes this:
>> 
>> class MySet
>> {
>> MySet[] elems;
>> // ...
>> }
> I'm not entirely sure what you're asking.
> 

he wants is(typeof(this) == typeof(this.elems[0]));

It will be a kind of tree.





More information about the Digitalmars-d mailing list