digitalmars.D - Re: Migrating to Shared
- Brian Palmer <d brian.codekitchen.net> May 12 2009
- BCS <none anon.com> May 12 2009
- Walter Bright <newshound1 digitalmars.com> May 12 2009
- BCS <none anon.com> May 12 2009
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
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
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
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