On 03/19/2013 08:18 AM, monarch_dodra wrote:
...

Hum, I had meant: "staticArray(R, Sizes...)(R)" in case you wanted a
multidim array.

I'm not 100% sure if putting Sizes... before R mixes well.


It would have to be

template staticArray(Sizes...){
    auto staticArray(R)(R range){ ... }
}


1) Do we want such a weird and specific function? Or is that just
premature optimization? I mean, is there a real need?

Use 'copy'.

Yes, but unfortunately, using 'copy' entails first declaring the
variable, then copying to it, which defeats what we're trying to achieve.


staticArray is fine too.

That said, I investigated array, and just got it to work :) And it was
trivial, so I'll push it.

Great.

Reply via email to