Convert delegate or function type to other.
Jacob Carlborg via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Jul 18 11:51:29 PDT 2016
On 2016-07-18 20:49, 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);?
https://dlang.org/phobos/std_functional.html#toDelegate
--
/Jacob Carlborg
More information about the Digitalmars-d-learn
mailing list