std.container.array: Error: unable to determine fields of Test because of forward references
user1234
user1234 at 12.de
Thu Oct 31 12:38:54 UTC 2019
On Thursday, 31 October 2019 at 12:37:55 UTC, user1234 wrote:
> On Thursday, 31 October 2019 at 12:29:28 UTC, Tobias Pankrath
> wrote:
>> [...]
>
> Try
>
> struct S
> {
> S*[] children;
> }
>
> because otherwise when you declare the array the compiler has
> not finished the semantic ana of S.
so S size is not known while S* size is known as it's a pointer
More information about the Digitalmars-d-learn
mailing list