Scientific computing and parallel computing C++23/C++26
john.michael.hall at gmail.com
Thu Jan 13 21:13:11 UTC 2022
On Thursday, 13 January 2022 at 20:58:25 UTC, H. S. Teoh wrote:
> I'm not 100% sure why .parallel is @system, but I suspect it's
> because of potential issues with race conditions, since it does
> not prevent you from writing to the same local variable from
> multiple threads. If pointers are updated this way, it could
> lead to memory corruption problems.
Could it be made @safe when used with const/immutable variables?
More information about the Digitalmars-d