Reset all Members of a Aggregate Instance

Jakob Ovrum via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Dec 5 11:18:33 PST 2015


On Saturday, 5 December 2015 at 16:28:18 UTC, Chris Wright wrote:
> The default constructor doesn't set default field values, 
> though, which is why my solution involved copying 
> ClassInfo.init.

Thanks, this is a handy factoid. Reminds me of the whole __dtor 
vs __xdtor debacle.



More information about the Digitalmars-d-learn mailing list