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

Manfred Nowak svv1999 at hotmail.com
Fri Nov 9 06:04:26 PST 2012


Nick Sabalausky wrote:

> So ok:
> 
> s/There *IS NO RECURSION* here./There is no _IMPOSSIBLE_ recursion
> here./ 

That's one correection only. Several more are to come.

Sorrily no one seems to have recognized this sentence in 
digitalmars.D.learn:40918:

> Because `R' can recurse infinitely over `Ancor' a mooring and a way 
> to that mooring is needed.

In regex-parlor this meens, that `( R!Ancor!)*' is the type the 
compiler should be able to handle according to the template definitions 
given.

But the compiler currently can only handle types with a finite length 
of description on instantiation. For me it is in doubt that this 
restriction can be declared as a bug.

-manfred


More information about the Digitalmars-d-learn mailing list