need help about get all public static function name

test test at gmail.com
Mon Oct 22 11:42:59 UTC 2018


On Monday, 22 October 2018 at 11:18:20 UTC, Stanislav Blinov 
wrote:
> On Monday, 22 October 2018 at 10:49:10 UTC, test wrote:
>
>
> note the added check that the member is not a type: 
> is(typeof(__traits(getMember, BaseType, name))).
> You'll still need to iterate overloads if you want to get all 
> static functions.


Thanks for this.

some how when I call "is(typeof(__traits(getMember, BaseType, 
name))) " in the template, my code report others error like:

Error: no property fromPointer for type void
Error: template instance TypeTemplate!(BaseType) is used as a type

Error: template instance `TypeTemplate!(BaseType)` error 
instantiating




More information about the Digitalmars-d-learn mailing list