www.digitalmars.com         C & C++   DMDScript  

D - REQ: Passing constant arrays

What about allowing?

struct A {}

void func(A []  array) {...}

...
A a;
A b;
A c;
A d;
A e;

//It makes swizzling easier
func({a, b, c, d, e});
func({b, a, c, d, e});

If that's to difficult, what about?
func((A[]){b, a, c, d, e});
Jan 07 2004