core.reflect vs c++ reflection

Adam D Ruppe destructionator at gmail.com
Tue Sep 28 11:45:37 UTC 2021


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.


More information about the Digitalmars-d mailing list