Extracting user defined attributes on function parameters

Jean-Louis Leroy jl at leroy.nyc
Fri Apr 17 17:31:32 UTC 2020


On Friday, 17 April 2020 at 16:54:42 UTC, Adam D. Ruppe wrote:
> void main() {
>         import std.stdio;
>         writeln(ParameterDefaults!f.stringof);
> }
>
> and it is fine.

Well, can't do. I need this purely at compile time, and 
cross-module. That's for supporting UDAs and default parameter 
values in openmethods. If you want a peek at what I am up to, see 
here: 
https://github.com/jll63/openmethods.d/blob/bolts-reflection/source/bolts/reflection/metafunction.d


More information about the Digitalmars-d-learn mailing list