Run-time setting of immutable variable?
Kagamin
spam at here.lot
Thu Sep 2 17:22:01 UTC 2021
If you want only address, you can keep it as size_t:
ubyte[10] Arr;
immutable size_t Address;
static this() {
Address = cast(size_t)(&Arr[0]);
}
More information about the Digitalmars-d-learn
mailing list