Compilable Recursive Data Structure ( was: Recursive data structure using template won't compile)

Manfred Nowak svv1999 at hotmail.com
Sat Nov 10 02:33:39 PST 2012


Nick Sabalausky wrote:

> I really don't see the relevance

Please look at the definition of R:
struct R
{
    int value;
    d_list!R Rlist;
}

If no recursion was wanted the OP should have written:
    d_list!(R*) Rlist;

In digitalmars.D.learn:40990 I already asked for an explanation.

-manfred


More information about the Digitalmars-d-learn mailing list