On Tuesday, 24 February 2015 at 20:35:04 UTC, Walter Bright wrote:
Only safe way to do this is to C malloc/free the count. And yes, at that point,
you need atomics.

No, RCArray is not intended for shared access between threads.

Shared containers and local containers are different enough that they merit being different types with different implementations altogether. Trying to just slap 'shared' on a container isn't going to work.

Maybe we want to fix the GC, exceptions and delegates or disable them in @safe code because they all cause implicit sharing.

Reply via email to