scoped classes and dependency inversion

Alex sascha.orlov at gmail.com
Fri Nov 9 09:17:27 UTC 2018


On Friday, 9 November 2018 at 09:13:56 UTC, Sjoerd Nijboer wrote:
> On Thursday, 8 November 2018 at 21:16:32 UTC, Sjoerd Nijboer 
> wrote:
>> I tried tom make a lazyscoped!T but I'm stuck at creating a 
>> constructor and determining the arguments from the Type.
>
> Unfortunately I can't find a way in D to get a list of 
> arguments at compile time for a given function. Is this at all 
> possible? It sounds like an easy case of introspection.

Is it this what you are looking for?
https://dlang.org/phobos/std_traits.html#Parameters



More information about the Digitalmars-d-learn mailing list