On Monday, 8 July 2024 at 08:56:51 UTC, drug007 wrote:
I need to generate some meta info of my data types. I do it
this
[way](https://gist.github.com/drug007/b0a00dada6c6ecbf46b4f6988401d4e2):
```D
import std.range, std.format, std.stdio, std.traits;
struct NestedType
{
string s;
double d;
}
struct Node
{
string value;
int i;
NestedType nt;
Node[] children; // It makes Node to be a recursive data
types
}
```
Can you post the error and the exact code that fails? I tried
building this (with the children uncommented out) and it works
fine.
-Steve