Variables & kind of memory
Stanislav Blinov
stanislav.blinov at gmail.com
Sat Apr 23 10:46:42 UTC 2022
On Saturday, 23 April 2022 at 03:41:17 UTC, Alain De Vos wrote:
> Feel free to elaborate.
Variables declared at module scope, and static variables in
function/aggregate scopes, unless also annotated as `shared` or
`__gshared`, are thread-local, therefore are placed in
thread-local storage. That's why you see difference in addresses
between e.g. &LV and &SLV in `main`.
More information about the Digitalmars-d-learn
mailing list