I was wondering if D had something akin to std::function in C++.
Say I have some functions in an associative array, for example:
auto mapping = ['!' : (string a) => toUpper!string(a), '^' :
(string a) => capitalize!string(a)];
What I want to do is basically declare something like:
f
On Wednesday, 25 June 2014 at 01:47:13 UTC, Mike Parker wrote:
On 6/25/2014 10:45 AM, Mike Parker wrote:
On 6/25/2014 10:10 AM, Yuushi wrote:
I was wondering if D had something akin to std::function in
C++.
Say I have some functions in an associative array, for
example:
auto mapping =
On Wednesday, 25 June 2014 at 05:13:00 UTC, Olivier Pisano wrote:
On Wednesday, 25 June 2014 at 03:33:15 UTC, Yuushi wrote:
Thanks a ton - I guess I need to do a fair bit more reading
about alias.
In this case, alias acts as typedef in C++. What is important
here is the function pointers/de