Is it possible using reflection or similar to extract only public method names from classes?

Gary Willoughby dev at nomad.so
Wed Aug 7 04:47:23 PDT 2013


On Tuesday, 6 August 2013 at 22:55:49 UTC, Marek Janukowicz wrote:
> Gary Willoughby wrote:
>
>> Is it possible using reflection or similar to extract only 
>> public
>> method names from classes? I'm thinking how i would go about
>> writing a unit test/mocking framework, investigating how i can
>> gather information about such things before i manipulate them.
>
> See traits: http://dlang.org/traits.html
>
> Look for: getProtection, getVirtualFunctions, getVirtualMethods.

I thought using __traits(...) was frowned upon?


More information about the Digitalmars-d-learn mailing list