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

Paul Backus snarwin at gmail.com
Fri Feb 25 19:23:05 UTC 2022


On Friday, 25 February 2022 at 19:06:25 UTC, Ali Çehreli wrote:
> On 2/25/22 08:24, Paul Backus wrote:
>
> > I've seen `.stringof` give inconsistent results. (E.g.,
> > https://issues.dlang.org/show_bug.cgi?id=18269)
>
> That must be a part of the reasons why Adam D Ruppe repeats 
> that .stringof should not be used for such programmatic 
> purposes e.g. if I remember correctly should not be used in 
> string mixins.

There's also the fact that the language spec makes no guarantees 
about the result of .stringof, so it is free to change at any 
time in ways that may break your code.


More information about the Digitalmars-d-learn mailing list