UDA for module declaration.

jmh530 john.michael.hall at gmail.com
Fri Jun 18 11:21:34 UTC 2021


On Friday, 18 June 2021 at 10:55:58 UTC, Max Samukha wrote:
> [snip]
>
> Really. Walter, please note that the lack of this feature makes 
> me turning my codebase into shit right now, not in some 
> indeterminate future.

It looks like this PR was merged...

```d
@UDA(42) module test;

struct UDA
{
     int a;
}

pragma(msg, __traits(getAttributes, test)); //prints 
"tuple(UDA(42))"

void main() {}
```


More information about the Digitalmars-d mailing list