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.parallelism with a lambda? I assume it's because it's a member function but I'm not 100% sure.

Check out this: https://issues.dlang.org/show_bug.cgi?id=5710

It seems that the compiler doesn't know what to do with non-global templates and delegates since the delegate would end up with two context pointers. Looks like there are efforts to fix it.

Reply via email to