Hello @monkyyy, thank you for your help. I will study and try your code.
Meanwhile I have found that I can add this function into the struct:
```d // postblit constructor, see// https://stackoverflow.com/questions/38785624/d-struct-copy-constructor
this(this) { string[string] ndct; foreach (k; dct.keys) // do a deep copy ndct[k] = dct[k]; dct = ndct; } ```