A nice D coding pattern

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Nov 25 05:56:22 PST 2014


MattCoder:

> May I understand that you're "disabling" the "default"
> constructor of the struct to use your own constructor?

Right. So the instance data of the struct is more likely correct 
when you call its methods.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list