Can I pass a function by parameter?
deadalnix via Digitalmars-d
digitalmars-d at puremagic.com
Sun Sep 7 23:23:38 PDT 2014
On Monday, 8 September 2014 at 05:04:21 UTC, Jakob Ovrum wrote:
> Function pointers can be converted to delegates through a
> simple wrapper function (which is how std.functional.toDelegate
> achieves it), but delegates cannot be wrapped by a function
> pointer without introducing additional parameters to the
> function in order to pass the context pointer.
Actually, this is possible using a trampoline.
More information about the Digitalmars-d
mailing list