Hello everyone,I have following function:
```d
import core.stdc.stdio;
void f(int i,int j){
    printf("%i,%i",i,j);
}
```
I want to forward `int[N]` to `(int i,int j)` etc. How can I write a forwarding function?
```d
void ff(alias g,int...I)(int[2]k){
    g(k[I]);
}//How to unpack template variable parameters?

void f(int[2]k){
    ff!(f,0,1)(k);//how to forward?
}

```

main function:
```d
extern(C):void main()
{
    int[2] a=[2,4];
    f(a);//calling like this
}
```

Reply via email to