Equivalent of C++ std::function
Ali Çehreli via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Jun 25 00:41:20 PDT 2014
On 06/24/2014 11:23 PM, Yuushi wrote:
> Yeah, I realised that when I went back and looked at what I'd tried:
>
> function string(string) transform;
That gets me all the time! :-/ That is the long version of the function
literal syntax:
auto f = function string(string s) { return "hello"; };
>
> which should have been:
>
> string function(string) transform;
>
> which does work.
>
> Thanks for the clarification.
Ali
More information about the Digitalmars-d-learn
mailing list