Address of data that is static, be it shared or tls or __gshared or immutable on o/s <x>
Cecil Ward via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Sep 6 08:27:32 PDT 2017
If someone has some static data somewhere, be it in tls or marked
shared __gshared or immutable or combinations (whatever), and
someone takes the address of it and pass that address to some
other routine of mine that does not have access to the source
code of the original definition of the object in question, then
is it possible to just use 'the address' passed without knowing
anything about that data? I'm assuming that the answer might also
depend on compilers, machine architectures and operating systems?
If this kind of assumption is very ill-advised, is there anything
written up about implementation details in different operating
systems / compilers ?
More information about the Digitalmars-d-learn
mailing list