Am Tue, 05 May 2015 08:41:13 -0700
schrieb Dan Olson <zans.is.for.c...@yahoo.com>:

> Iain Buclaw via Digitalmars-d <digitalmars-d@puremagic.com> writes:
> 
> > If the cost is too much (ie: there is no heap), then we should be
> > able to stop emutls from kicking in by preventing the D frontend
> > from returning true on isThreadLocal calls.
> 
> Iain, I think something like this would be good in GDC.  Makes it so
> much easier to compile for no thread environments.

I'm not really sure about this. It's trivial to implement but it
generates a semantic difference which harms code portability (e.g. if
you have code where you want a global variable, don't mark it as
__gshared and then move to an environment with threads).

Reply via email to