Obtaining an address given a (run time) variable name
Johan
j at j.nl
Wed Jan 22 18:17:33 UTC 2025
On Monday, 20 January 2025 at 19:54:19 UTC, Jonathan M Davis
wrote:
>
> Variable names are not a thing at runtime. They're entirely a
> compile time thing, and the generated code does not know or
> care that there even were names for variables in the source
> code.
When the program is compiled with debug info, one could parse
that on the fly and then you would have variable names available
at runtime.... ;-)
cheers,
Johan
More information about the Digitalmars-d-learn
mailing list