Sharing in D

downs default_357-line at yahoo.de
Thu Jul 31 17:35:39 PDT 2008


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.



More information about the Digitalmars-d mailing list