Forward Reference

Anibal via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Oct 9 12:04:55 PDT 2014


Hi everyone,

I'm trying to something like a tree structure.

The following:

import std.container;
class Tree
{
         private SList!Tree subTree;
}

Produces: class Tree no size yet for forward reference.

How i should proceed in order to keep this declaration?

Thanks a lot!

PD: (You guys are incredibly quick to answer, that's awesome!)


More information about the Digitalmars-d-learn mailing list