core.reflect vs c++ reflection
Stefan Koch
uplink.coder at googlemail.com
Mon Sep 27 08:39:45 UTC 2021
On Monday, 27 September 2021 at 07:32:48 UTC, bauss wrote:
>
> Yeah I figured it wouldn't work that easily.
>
> In this case yeah "E" wouldn't be a problem but if it was
> "ThisTypeName" you might end up with a typo.
Yes, but you can typo ThisTypeName whether you type it with
quotes around it or without.
It's still an identifier. Which may not be Identifying anything
if it's mistyped.
The reason why I am using a string is that I wanted to avoid
having to introduce a special expression. see c++ `reflexpr`
More information about the Digitalmars-d
mailing list