Steven Schveighoffer wrote:
On Thu, 26 Mar 2009 17:27:25 -0400, Walter Bright
You can already used shared/unshared. The semantics aren't
implemented, but the type system support for it is.
But is it enforced?
No, it is just type-checked.
Basically, I want to focus on one new language
aspect at a time. As far as I know, with the current D compiler, I can
access a global not marked shared from multiple threads, no?
That's correct.
When
shared/unshared is actually implemented, each thread gets its own copy,
right?
Of unshared data, right, each thread gets its own copy. The default will
be __thread for globals.