Serious extern(C) bug
Iain Buclaw
ibuclaw at ubuntu.com
Wed Sep 25 04:20:54 PDT 2013
On 25 September 2013 10:40, Jacob Carlborg <doob at me.com> wrote:
> On 2013-09-25 06:49, "Luís Marques" <luis at luismarques.eu>" wrote:
>
>> I guess I also implicitly assumed extern(C) implied __gshared... ("make
>> it the same as C, not just the mangling"). And TLS is so implicit in D2
>> that one can even forget about it :-)
>
>
> Well, C has thread local, via the extension "__thread" or via C++
> "thread_local". So if extern (C) implied "__gshared", how would one declare
> an extern (C) thread local variable?
>
> --
> /Jacob Carlborg
Especially considering that __thread is deprecated/error in D now. ;)
--
Iain Buclaw
*(p < e ? p++ : p) = (c & 0x0f) + '0';
More information about the Digitalmars-d
mailing list