Sharing in D

superdan super at dan.org
Thu Jul 31 22:30:25 PDT 2008


Walter Bright Wrote:

> Jason House wrote:
> > Walter Bright Wrote:
> > 
> >> http://www.reddit.com/comments/6u7k0/sharing_in_d/
> > 
> > This is one of my 3 big wishes for the D language.
> > 
> > The artical talks about shared being transitive just like
> > const/invariant. I certainly hope it's more like pure than transitive
> > invariant.
> 
> Pure doesn't apply to data types, it applies to functions. I don't know 
> what you mean.

looks 2 me more like more of the confusion in yesterthread.

> > Allowing access to thread-local globals is a bad idea.
> 
> Why? Global thread local storage is even enshrined into C++0x.

99% of the global shit i ever defined i wanted to be thread local. i had to take special measures to make it so. 

dealing with globals in one thread is shitty to boot. using globals to communicate across threads is sheer suicide.



More information about the Digitalmars-d mailing list