core.reflect vs c++ reflection
bauss
jj_1337 at live.dk
Tue Sep 28 13:51:55 UTC 2021
On Tuesday, 28 September 2021 at 11:45:37 UTC, Adam D Ruppe wrote:
> On Tuesday, 28 September 2021 at 06:43:39 UTC, bauss wrote:
>> Yeah, I really wish we had an alternative to stringof like
>> nameof. I often forgot that aliases don't work well with it,
>> as displayed here :)
>
> It is called
>
> __traits(identifier)
>
> .stringof should never be used outside of debugging messages.
__traits(identifier) doesn't work either.
See:
https://run.dlang.io/is/9cDdra
More information about the Digitalmars-d
mailing list