D - REQ: Passing constant arrays
- J Anderson (14/14) Jan 07 2004 What about allowing?
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