addressof
The addressof is an operator used to obtain the address value of a variable.
Syntax
addressof(myVariable);
Example Code
import std.print;
int32 main()
{
int32 i = 7;
int32* p = addressof(i);
std::print("${i} is located at ${p}");
}
Output
7 is located at 0xFFFFFFFFFFFFFFFF