delegate with optional parameters
Basile B. via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Apr 2 13:02:56 PDT 2017
On Sunday, 2 April 2017 at 19:24:14 UTC, Inquie wrote:
> is it possible to create a delegate that takes an optional
> number of parameters and/or return type?
>
> T delegate(S...)(S) special_delegate;
>
> I guess this is impossible?
alias Dg(Return, Params...) = Return delegate(Params);
Dg!(int,float, string) myDg;
More information about the Digitalmars-d-learn
mailing list