shared: Has anyone used it without a lot of pain?
Guillaume Piolat via Digitalmars-d
digitalmars-d at puremagic.com
Thu Apr 6 07:32:51 PDT 2017
On Thursday, 6 April 2017 at 13:52:01 UTC, deadalnix wrote:
> Right now, there are no way to transfers ownership from one
> thread to another, so you pretty much got to cast to shared,
> move data to the other thread and then cast back to not shared.
> (People who followed closely will notice that this is somewhat
> entangled with other problem D has such as nogc exception, see
> http://forum.dlang.org/post/ikzzvbtvwhqweqlzxytz@forum.dlang.org ).
Heretic idea floating in the air: kill shared with a secret
ritual, transmute it into "owned", keep the number of type
constructor constant :)
The paper you linked also solves the "static this" having special
rights on immutable data IIRC.
More information about the Digitalmars-d
mailing list