www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Re: Migrating to Shared

reply Brian Palmer <d brian.codekitchen.net> writes:
Walter Bright Wrote:

 I wrote a brief article which should help:
 
 http://www.digitalmars.com/d/2.0/migrate-to-shared.html

I like this development, the only thing that makes me wary is the implied TLS behavior. I think I'd personally prefer it if tls was a keyword as well, and all globals had to have either tls or shared (or __gshared) in their type, rather than defaulting to tls if none is specified. So we'd force the programmer to explicitly define the level of sharing. Some might view that as too verbose though?
May 12 2009
parent reply BCS <none anon.com> writes:
Hello Brian,


 I like this development, the only thing that makes me wary is the
 implied TLS behavior. I think I'd personally prefer it if tls was a
 keyword as well, and all globals had to have either tls or shared (or
 __gshared) in their type, rather than defaulting to tls if none is
 specified. So we'd force the programmer to explicitly define the level
 of sharing.

I'm fine with the implicit but I'd like to see the explicit form as well (so they wouldn't pop up from -vtls).
May 12 2009
parent reply Walter Bright <newshound1 digitalmars.com> writes:
BCS wrote:
 I'm fine with the implicit but I'd like to see the explicit form as well 
 (so they wouldn't pop up from -vtls).

You can do it explicitly with ___thread, though I was planning on deprecating that.
May 12 2009
parent BCS <none anon.com> writes:
Hello Walter,

 BCS wrote:
 
 I'm fine with the implicit but I'd like to see the explicit form as
 well (so they wouldn't pop up from -vtls).
 

deprecating that.

not soon I hope.
May 12 2009