How to get the location (file, line) of UDA without parens?
user1234 at 12.de
Sun Nov 14 07:06:25 UTC 2021
On Sunday, 14 November 2021 at 05:12:58 UTC, Andrey Zherikov
> Here is my code:
> `W()` (2) works as expected but is it possible to achieve the
> same without parenthesis so `getAttributes` trait returns
> `tuple(L("app.d", 16LU))` for (1)?
No, without parens this is really the function template, as a
symbol, that becomes the UDA.
More information about the Digitalmars-d-learn