_d_newarraymTX

Create a new multi-dimensional array

Has two variants: - _d_newarraymTX which initializes to 0 - _d_newarraymiTX which initializes elements based on TypeInfo

void main()
{
    new int[][](10, 20);
    // _d_newarraymTX(typeid(float), [10, 20]);

    new float[][][](10, 20, 30);
    // _d_newarraymiTX(typeid(float), [10, 20, 30]);
}
extern (C)
void[]
_d_newarraymTX
(
const TypeInfo ti
,
size_t[] dims
)

Parameters

ti TypeInfo

TypeInfo of the array type

dims size_t[]

array length values for each dimension

Return Value

Type: void[]

newly allocated array

Meta