Recursive Templates

Jarrett Billingsley kb3ctd2 at yahoo.com
Wed Jul 30 13:24:07 PDT 2008


"BCS" <ao at pathlink.com> wrote in message 
news:55391cb32fbe48cac041c4d5a41e at news.digitalmars.com...
> 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.

Ahh. 





More information about the Digitalmars-d mailing list