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

Manfred Nowak svv1999 at hotmail.com
Fri Nov 9 13:32:01 PST 2012


Timon Gehr wrote:

> The example definitely exposes a bug in DMD.
> The D front end I am developing can already handle it.

May I guess, that your front end is also able to handle this code:

struct Elem( size_t myNumber) {
  Elem!( myNumber +1)* next;
}
void main(){
  Elem!0 list;
  list.next= new Elem!1;
}

-manfred


More information about the Digitalmars-d-learn mailing list