Compile-time reflection and templates

jmh530 john.michael.hall at
Wed Sep 27 20:03:49 UTC 2017

On Wednesday, 27 September 2017 at 19:47:32 UTC, Jean-Louis Leroy 
> I'd like to go further: find the template arguments and the 
> function arguments and return types. Looking at __traits and 
> std.traits, it doesn't seem feasible, but maybe I overlooked 
> something?

You can use TemplateArgsOf
to get the template arguments.

You can test if it's a function

You can get the Parameter and Return types

You can get the names of parameters

More information about the Digitalmars-d mailing list