Is it possible using reflection or similar to extract only public method names from classes?
Marek Janukowicz
marek at janukowicz.net
Tue Aug 6 15:57:00 PDT 2013
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.
--
Marek Janukowicz
More information about the Digitalmars-d-learn
mailing list