How to programmatically get all the method names of an interface

mw mingwu at gmail.com
Sat Feb 26 00:00:08 UTC 2022


On Friday, 25 February 2022 at 23:28:21 UTC, Ali Çehreli wrote:
> On 2/25/22 14:05, mw wrote:
> Perhaps allMembers?
>
>   https://dlang.org/spec/traits.html#allMembers

Thank you, Ali.

It kind of works, but "No name is repeated", in the example on 
that page:
```
     void foo() { }
     int foo(int) { return 0; }
```

only one "foo" is returned, how do I get the signature info of 
these two different methods? (I'm trying to do some introspection 
of D code, is this possible?)



More information about the Digitalmars-d-learn mailing list