Using a macro for a function signature

pineapple via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Apr 5 06:39:00 PDT 2016


On Tuesday, 5 April 2016 at 13:17:38 UTC, Anonymouse wrote:
> You can't get rid of the signature completely as the functions 
> still need a parameter list with x declared. You will get 
> "Error: undefined identifier 'x'" otherwise. You can largely 
> omit the *type* of x if it can be inferred from the signature, 
> but you can't have its name be solely in the signature alias.

On Tuesday, 5 April 2016 at 13:19:43 UTC, ag0aep6g wrote:
> On 05.04.2016 13:35, pineapple wrote:
> Saves you some typing, especially with complicated parameter 
> types.
>
> Another thing is std.traits.Parameters

You are both wonderful, this is exactly what I was trying to work 
out. Thank you so much!




More information about the Digitalmars-d-learn mailing list