Accessing static data of functions
Steven Schveighoffer
schveiguy at gmail.com
Wed Oct 20 13:59:10 UTC 2021
On 10/19/21 4:04 PM, Timon Gehr wrote:
> On 10/19/21 4:19 PM, Steven Schveighoffer wrote:
>> I think it's impossible to do introspectively (or even detect that
>> those things exist).
>
> import(__FILE__)
>
> ;)
Ok, so not *impossible*. Just horrific ;)
It reminds me of an early tango library called
[flectioned](http://dsource.org/projects/flectioned), which actually
opened the executable file and parsed the debug info so you could do
runtime reflection without needing the source.
-Steve
More information about the Digitalmars-d
mailing list