On Saturday, 28 March 2020 at 07:33:38 UTC, Jacob Carlborg wrote: > On 2020-03-27 20:17, YD wrote: >> [...] > > Classes in D are always passed by reference. Try dropping the > pointer in the `create` method: > > static A create(); Thanks! I got it to work for now.