On Sunday, 26 January 2014 at 20:34:27 UTC, bearophile wrote:

Do you know that module level variables in D are thread-local? If you don't what that, you have to use __gshared.

Bye,
bearophile

Perfect, thanks!

If anyone wants to make things easy on stupid people like me,
using a module level variable inside a parallel foreach like I
was could generate a compiler warning.  Not that I'm smart enough
to implement something like that.  :-)

Andrew

Reply via email to