How to initialize static array member variable?

Philippe Sigaud philippe.sigaud at gmail.com
Thu Sep 30 14:23:41 PDT 2010


On Thu, Sep 30, 2010 at 22:32, bearophile <bearophileHUGS at lycos.com> wrote:
> Philippe Sigaud:
>
>> It's doable, but it means modifying your struct a bit: instead of
>> holding the values in an array, you can store them in a tuple.
>> I'll see if anyone as another idea: I'm biased towards tuples.
>
> Please, be gentle with the D newbie, don't burn his brain :-) You can't learn a big part of D2 in one day.

Well, I did say I was biased :-)  So much so, in fact, that didn't see
at first he was using an array.
I still wonder how the constructor works: how can T[N]v... accept 1,2,3?


More information about the Digitalmars-d-learn mailing list