Struggling to implement parallel foreach...

Manu turkeyman at gmail.com
Sat Jun 15 17:44:33 UTC 2019


On Fri, Jun 14, 2019 at 11:13 PM Manu <turkeyman at gmail.com> wrote:
>
> struct S
> {
>   void method() shared;
> }
>
> void test()
> {
>   S s;
>   void localFun() shared
>   {
>     s.method(); // <- s must transitively receive const from the
> context pointer, otherwise this doesn't work
>   }
> }

** s must transitively receive *shared* from the context


More information about the Digitalmars-d mailing list