is there any trait to check if variable is __gshared?

Adam D. Ruppe destructionator at gmail.com
Wed Mar 26 09:04:46 PDT 2014


On Wednesday, 26 March 2014 at 15:58:32 UTC, bearophile wrote:
> Is the -vtls compiler switch enough?

The JSON output with -X will also tell you if it is gshared.

But in both cases you'd have to run the compiler twice and read 
the output instead of just getting the info at compile time from 
inside D.


More information about the Digitalmars-d-learn mailing list