[Issue 10165] No syntax to create thread-local shared variables

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 24 14:43:56 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10165



--- Comment #2 from IdanArye <GenericNPC at gmail.com> 2013-05-24 14:43:55 PDT ---
Here is the pull request:
https://github.com/D-Programming-Language/phobos/pull/1302

@Steven Schveighoffer: It doesn't work - `static shared(T)` does the same as
`static shared T`.

I assume the proper solution would be to fix this, but I leave the pull request
open anyways. Like I said - there should be a compiler solution - but we don't
know how many people use the `static shared(T)` syntax with the intention of
declaring a process-global variable, and we can't show a warning message when
this syntax is used wrongly - so the dmd solution requires some serious debate.
In the meanwhile, the Phobos solution doesn't break anything, and it took me 20
minutes: 1 for the implementation, 2 for the unit test, and the rest for all
the "paperwork"(=sending this bug and the pull request) - so I planned from the
beginning to send it and let the dev team decide if they want to use my Phobos
solution or to fix it in dmd.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list