On 03/11/2015 01:07 AM, Russel Winder via Digitalmars-d-learn wrote:
On Tue, 2015-03-10 at 15:34 -0700, Ali Çehreli via Digitalmars-d-learn
wrote:
[…]
We can hope to make it simpler by taking advantage of parallel map but
it requires a static local function or a global function (a lambda
cannot be used):
[…]

Is there a reason for excluding lambdas, it a priori sounds like a bug.

This is a current language implementation issue because there is just one context pointer. Parallel map is a member function that takes its function as an 'alias' template parameter:

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

Ali

Reply via email to