new -vtls flag does nothing?

Walter Bright newshound1 at digitalmars.com
Tue Jun 16 10:00:36 PDT 2009


Brian Palmer wrote:
> I decided to try out the new shared stuff in 2.030 on OS X, so I ran
> it against a module I've written using the -vtls flag. Now I *know*
> there are globals in this module, so I was surprised to see no
> output.
> 
> To make doubly sure, I ran 2.030 against the example module given at
> http://www.digitalmars.com/d/2.0/migrate-to-shared.html with the
> -vtls flag. No output there either.
> 
> int x;
> 
> void main() { static int y; }
> 
> Is the vtls flag non-functional? Is this an OS X specific issue?

I get:

dmd test -vtls
test.d(2): x is thread local
test.d(5): y is thread local



More information about the Digitalmars-d mailing list