sliced().array compatibility with parallel?

Jay Norwood via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jan 9 17:54:18 PST 2016


On Sunday, 10 January 2016 at 01:16:43 UTC, Ilya Yaroshenko wrote:
> On Saturday, 9 January 2016 at 23:20:00 UTC, Jay Norwood wrote:
>> I'm playing around with win32, v2.069.2 dmd and 
>> "dip80-ndslice": "~>0.8.8".  If I convert the 2D slice with 
>> .array(), should that first dimension then be compatible with 
>> parallel foreach?
>>
>> [...]
>
> Oh... there is no bug.
> means must be shared =) :
> ----
> shared double[1000] means;
> ----

ok, thanks.  That works. I'll go back to trying ndslice now.



More information about the Digitalmars-d-learn mailing list