D with minimal runtime
Adam D. Ruppe
destructionator at gmail.com
Wed Jun 17 13:18:07 UTC 2020
On Wednesday, 17 June 2020 at 12:48:03 UTC, Andrei Alexandrescu
wrote:
> Wouldn't that be allocated during compilation, and frozen at
> runtime (i.e. essentially static data)?
Yeah. You can modify the object (it is not const), but its memory
address is statically allocated and will never change / be freed,
even if you overwrite all the references. It is part of the exe
file.
(this fact is actually useful for many things but it can be
confusing)
More information about the Digitalmars-d
mailing list