struct construction (how?)

bearophile bearophileHUGS at lycos.com
Mon Dec 28 02:44:57 PST 2009


Ali Çehreli:
> auto s = S(1, 2);

And by the way, that's the idiomatic way to initialize a struct in D.
If you want to statically initialize it, there are other ways I've shown you.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list