Trait or builtin that returns arguments passed to current function (if any)

Alexandru Ermicioi alexandru.ermicioi at gmail.com
Thu Sep 9 13:49:55 UTC 2021


On Thursday, 9 September 2021 at 12:49:16 UTC, Basile B. wrote:
>
> Compilers traits dont require a DIP (IIRC) so just go on **with 
> a PR** and be
> smart when answering the review comments.

You can already get the parameter list of a function using is 
expression.

Smth like:
```
is(func Params == _parameters)
```

But it is a bit buggy, since you have to play a bit with it, 
before you can even extract the values.

Imho, it would be better to improve the is expression rather than 
adding a new trait if possible.

Best regards,
Alexandru.


More information about the Digitalmars-d mailing list