using __traits to get line number of a member

Stanislav Blinov stanislav.blinov at gmail.com
Sat Nov 13 06:05:37 UTC 2021


On Saturday, 13 November 2021 at 05:31:51 UTC, forkit wrote:
> Code below is self explanatory.
>
> Any assistance on how to get the line number is welcome ;-)

https://dlang.org/spec/traits.html#getLocation

That?


More information about the Digitalmars-d-learn mailing list