On Wednesday, 12 July 2017 at 12:20:11 UTC, Miguel L wrote:
What is the best way in D to create a function that receives a static array of any length?
You will need to use templates:
void foo(size_t N)(int[N] arr) {
}
--
Biotronic
Biotronic via Digitalmars-d-learn Wed, 12 Jul 2017 06:02:10 -0700
On Wednesday, 12 July 2017 at 12:20:11 UTC, Miguel L wrote:
What is the best way in D to create a function that receives a static array of any length?
You will need to use templates:
void foo(size_t N)(int[N] arr) {
}
--
Biotronic