Confused by struct constructors

bearophile bearophileHUGS at lycos.com
Sat Jan 23 06:11:13 PST 2010


Simen kjaeraas:

> In attempting to create a function to initialize any array of structs in a  
> simple manner,
> ...
> auto s = initArray!( S )( 1, "a", 2, "b", 3, "c" );

That syntax is not useful, if you have few more structs or fields you are lost in the soup of commas and items..

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list