Sharing in D
Walter Bright
newshound1 at digitalmars.com
Fri Aug 1 01:57:37 PDT 2008
superdan wrote:
> i grok that. my problem is that your shared doesn't help me with
> writing good code in that case. ++x is just wrong for shared x. i'd
> rather have it disabled or somethin'.
Actually, the current plan is that ++ would be disabled for shared
lvalues. Reads and writes to them would be done through intrinsic
functions, which would make clear the order in which reads and writes
are done.
Sure, it won't be pretty, but there won't be any ambiguity of the order
in which things happen.
More information about the Digitalmars-d
mailing list