On Wednesday, 3 August 2022 at 03:36:55 UTC, Domain wrote:
I want to find out all public functions in all modules in a package. Can I do that at compile time?

You can do something like that:

```d
static foreach (sym; __traits(allMembers, mixin("std.string")))
{
    pragma(msg, sym.stringof);
}
```

Then you would have to check if `sym` is a template or function or something else.

Reply via email to