Re: Why is amap implemented as a member function of TaskPool?

2014-09-19 Thread Jared via Digitalmars-d-learn
On Friday, 19 September 2014 at 07:17:50 UTC, Atila Neves wrote: The point is I _want_ a delegate. Atila On Thursday, 18 September 2014 at 20:51:30 UTC, Jared wrote: On Thursday, 18 September 2014 at 19:49:00 UTC, Atila Neves wrote: Or what I really want to ask: why can't I call amap from std

Re: Why is amap implemented as a member function of TaskPool?

2014-09-18 Thread Jared via Digitalmars-d-learn
On Thursday, 18 September 2014 at 19:49:00 UTC, Atila Neves wrote: Or what I really want to ask: why can't I call amap from std.parallelism with a lambda? I assume it's because it's a member function but I'm not 100% sure. Atila You have to tell DMD that the lambda is not in fact a delegate.