struct construction (how?)

bearophile bearophileHUGS at
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.


More information about the Digitalmars-d-learn mailing list