[core.reflect] TemplateInstance reflection
uplink.coder at googlemail.com
Mon Oct 4 16:04:32 UTC 2021
On Monday, 4 October 2021 at 14:00:49 UTC, jmh530 wrote:
> On Monday, 4 October 2021 at 12:07:36 UTC, Stefan Koch wrote:
>> You can get Foo by asking for the name "Foo"
>> but it won't tell you much, right now as reflecting template
>> declarations is a really tricky thing, they can have hidden
>> errors in them, which puts the reflector in a bad state.
>> Therefore I don't touch the bodies of template declarations
>> right now.
> Tanks. I was thinking getting the name of `Foo` from `x` or `y`.
That isn't currently possible.
DMD rewrites that before core.reflect sees the function body.
More information about the Digitalmars-d