January 08, 2004 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});
| ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply