Proposal: Exceptions and @nogc

David Nadlinger via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 5 09:08:33 PDT 2017


On Wednesday, 5 April 2017 at 14:35:18 UTC, Guillaume Piolat 
wrote:
> But those of us with the runtime disabled don't have TLS.

This is only true on DMD/OS X x86, where TLS is emulated in 
druntime. On other platforms, TLS is implemented by the linker 
and/or C runtime, so it works without druntime just fine.

Regular thread-local module constructors (static this) of course 
won't work without druntime support, as they are mediated through 
ModuleInfo.

  — David


More information about the Digitalmars-d mailing list