Sharing in D
Walter Bright
newshound1 at digitalmars.com
Fri Aug 1 17:01:18 PDT 2008
Steven Schveighoffer wrote:
> Now, Let's say you have thread 1 which calls bar. So now thread 1's x2 and
> obj._x point to the exact same data, which is both viewed as shared and
> unshared at the same time. Is this something that should be allowed? Would
> you not make the assumption that you can do whatever you want with what x2
> points to without synchronization because it is unshared? Maybe I don't
> completely understand what you are intending for shared to mean.
Eh, I think you've got me there. Looks like unshared cannot be
implicitly converted to shared.
More information about the Digitalmars-d
mailing list