On Thu, Sep 30, 2010 at 22:32, bearophile <bearophileh...@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?