https://issues.dlang.org/show_bug.cgi?id=15523
--- Comment #8 from Manu <[email protected]> --- (In reply to Manu from comment #7) > (In reply to Jacob Carlborg from comment #6) > > > > This would only affect extern(C++)? Would it be confusing to need to specify > > @attribute("__thread") only when the linkage is C++? > > I don't really think so; __thread is a C++ attribute, so I think it only > makes sense if you extern(C++) aswell. Then again, __thread specifies only an ABI and no functions or mangling, so it could theoretically apply to D variables just as readily as extern(C++). thread_local only really makes sense for extern(C++) though, and that's what I'm concerned with here. I think it makes good sense that non-__gshared extern(C++) should follow the standard, and I'm sure Apple will come to the party before too long. --
