Allocate an array literal
Rely on the caller to do the initialization of the array.
int[] getArr() { return [10, 20]; // auto res = cast(int*) _d_arrayliteralTX(typeid(int[]), 2); // res[0] = 10; // res[1] = 20; // return res[0..2]; }
TypeInfo of resulting array type
.length of array literal
pointer to allocated array
See Implementation
Allocate an array literal
Rely on the caller to do the initialization of the array.