<div dir="ltr"><div>Can I create an instance of A without calling a constructor? (see below)<br></div><div>Use case: for generic deserialiaztion, when the deserialization library encounters a class without default constructor for example (it knows what the fields should be set to, but doesn't know how to construct the object).</div><div><br></div><div><div>class A{</div><div>  int x=2;</div><div>  this(int x){</div><div>    this.x=x;</div><div>  }</div><div>}</div></div><div><br></div><div><br></div><div><div>This came up here:</div><div><a href="https://github.com/msgpack/msgpack-d/issues/54#issuecomment-104136148">https://github.com/msgpack/msgpack-d/issues/54#issuecomment-104136148</a><br></div><div>I provide some hacky solution for that in that thread but I suspect it's not safe and something is missing.</div><div><br></div><div><br></div><div></div></div></div>