How to check that a member function is generated by compiler?

Paul Backus snarwin at
Fri Feb 25 16:24:46 UTC 2022

On Friday, 25 February 2022 at 14:25:22 UTC, Andrey Zherikov 
> 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. 

More information about the Digitalmars-d-learn mailing list