A new memory block on the heap is allocated using the new expression, which returns a pointer to the managed memory:
new
void main() { int* a = new int; *a = 42; // dereferencing import std.stdio : writeln; writeln("a: ", *a); }