www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Where is TypeInfo stored?

reply Jeremy DeHaan <dehaan.jeremiah gmail.com> writes:
I was doing some experiments with the runtime and I didn't notice 
the TypeInfo instances being allocated by the GC. Are these put 
into the text or data segments? Is there anyway to find out more 
about this process?
Mar 27 2018
parent reply Adam D. Ruppe <destructionator gmail.com> writes:
On Tuesday, 27 March 2018 at 18:56:58 UTC, Jeremy DeHaan wrote:
 Are these put into the text or data segments?
Yeah, they are in the data segment as static data (just like if you declared your own static array).
Mar 27 2018
parent Jeremy DeHaan <dehaan.jeremiah gmail.com> writes:
On Tuesday, 27 March 2018 at 19:06:38 UTC, Adam D. Ruppe wrote:
 On Tuesday, 27 March 2018 at 18:56:58 UTC, Jeremy DeHaan wrote:
 Are these put into the text or data segments?
Yeah, they are in the data segment as static data (just like if you declared your own static array).
Awesome, thanks. That is what I was hoping for.
Mar 27 2018