How to check that a member function is generated by compiler?
Andrey Zherikov
andrey.zherikov at gmail.com
Fri Feb 25 17:52:23 UTC 2022
On Friday, 25 February 2022 at 16:24:46 UTC, Paul Backus wrote:
> On Friday, 25 February 2022 at 14:25:22 UTC, Andrey Zherikov
> wrote:
>>
>> Another interesting observation - is there any explanation why
>> `typeof` returns different results for generated `opAssign`?
> [...]
>>
>> If I move `foreach` loop into a function (e.g. `main`) then
>> the first pragma prints the same as the others.
>
> It sounds like this is probably an inconsistency in
> `.stringof`, not `typeof`. I couldn't say what causes it, but
> it's not the first time I've seen `.stringof` give inconsistent
> results. (E.g., https://issues.dlang.org/show_bug.cgi?id=18269)
I see. Thanks
More information about the Digitalmars-d-learn
mailing list