sliced().array compatibility with parallel?

Marc Schütz via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jan 10 03:21:53 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;
> ----

I'd say, if `shared` is required, but it compiles without, then 
it's still a bug.


More information about the Digitalmars-d-learn mailing list