On Wed, 14 Jan 2015 07:09:44 -0800 Ali Çehreli via Digitalmars-d <digitalmars-d@puremagic.com> wrote:
> Reduced: > > import std.container; > > class Node > { > SList!Node children; > } > > void main() > {} > > Error: class deneme.Node no size yet for forward reference > > I wonder why an SList of a reference type requires the size of the > elements? The following compiles but is that a pointer to a class > variable or a class object? How can we even use the 'children' member? > > SList!(Node*) children; i don't know: i've never used `std.container` anyway. ;-)
signature.asc
Description: PGP signature