Sharing in D
Walter Bright
newshound1 at digitalmars.com
Thu Jul 31 21:03:28 PDT 2008
downs wrote:
> Walter Bright wrote:
>> downs wrote:
>>> IMHO, however, most global variables are intended to be
>>> instantiated only once, not once per thread. Because of this, the
>>> success of this model hinges on how easy an object can be
>>> transferred between threads. Some sort of language enforced
>>> blocking, maybe?
>> The idea is to no longer allow unsynchronized uncontrolled sharing
>> of data between threads as the *default* behavior. If you want to
>> do it, you'll have to do it *intentionally*.
>>
>
> Yeah, but I'd like a way to do it that doesn't leave me entirely on
> my own, considering that it's imho a common use-case.
I don't understand what you're asking for.
More information about the Digitalmars-d
mailing list