Something needs to happen with shared, and soon.
Walter Bright
newshound2 at digitalmars.com
Tue Nov 13 13:28:48 PST 2012
On 11/13/2012 1:11 AM, luka8088 wrote:
> This clarifies a lot, but still a lot of people get confused with:
> http://dlang.org/faq.html#shared_memory_barriers
> is it a faq error ?
Andrei is a proponent of having shared to memory barriers, I disagree with him.
We haven't convinced each other yet, so this is a bit up in the air.
> and also with http://dlang.org/faq.html#shared_guarantees said, I come to think
> that the fact that the following code compiles is either lack of implementation,
> a compiler bug or a faq error ?
>
> //////////
>
> import core.thread;
>
> void main () {
> shared int i;
> (new Thread({ i++; })).start();
> }
I think it's a user bug.
More information about the Digitalmars-d
mailing list