core.reflect vs c++ reflection
bauss
jj_1337 at live.dk
Tue Sep 28 14:24:06 UTC 2021
On Tuesday, 28 September 2021 at 13:59:22 UTC, Adam D Ruppe wrote:
> On Tuesday, 28 September 2021 at 13:51:55 UTC, bauss wrote:
>> __traits(identifier) doesn't work either.
>>
>> See:
>>
>> https://run.dlang.io/is/9cDdra
>
> That's doing exactly what it is supposed to do. What did you
> expect and why do you want that?
Yeah but the point in this case is to get "a" as a string.
That's what I meant in my original comment and that's also what's
being discussed with nameof.
Ex. if it was in C#. nameof(a) would return "a"
More information about the Digitalmars-d
mailing list