| Thread overview | ||||||
|---|---|---|---|---|---|---|
|
May 12, 2009 Re: Migrating to Shared | ||||
|---|---|---|---|---|
| ||||
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 Re: Migrating to Shared | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Brian Palmer | 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 Re: Migrating to Shared | ||||
|---|---|---|---|---|
| ||||
Posted in reply to BCS | 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 Re: Migrating to Shared | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | 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).
>>
> You can do it explicitly with ___thread, though I was planning on
> deprecating that.
>
not soon I hope.
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply