[Issue 10165] No syntax to create thread-local shared variables
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri May 24 14:30:05 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10165
Steven Schveighoffer <schveiguy at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |schveiguy at yahoo.com
--- Comment #1 from Steven Schveighoffer <schveiguy at yahoo.com> 2013-05-24 14:30:04 PDT ---
I'm almost positive this works:
static shared(Foo) a;
That is, if shared is interpreted as a storage class, it puts the variable in
global storage, not thread local. But shared as a type constructor just
affects the type.
Don't have the patience to test, so I'll leave the bug open :)
--
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