On Monday, 18 July 2016 at 20:15:30 UTC, John wrote:
On Monday, 18 July 2016 at 18:49:22 UTC, Rufus Smith wrote:
Suppose I have the following: alias func = void function(int);

Is there a way to convert it automatically to something the same type except of delegate: alias del = toDel(func) = void delegate(int);?

import std.traits;
alias del = ReturnType!func delegate(Parameters!func);


Thanks, I guess that allows me to change the parameters too!


Reply via email to