Don: > As I said in my other post, we could deal with this using a CTFE library > solution.
Currently this works:
ubyte[10] a = [1, 2];
void main() {}
But if you write this, I think padArrayLiteral returns an int[], so D refuses
the implicit cast:
ubyte[10] a = padArrayLiteral(256, [1, 2]);
void main() {}
So I think you have to write something like:
ubyte[10] a = padArrayLiteral!ubyte(256, [1, 2]);
void main() {}
Bye,
bearophile
