__gshared and static constructors

Alex Rønne Petersen xtzgzorex at gmail.com
Wed Jan 4 11:14:41 PST 2012


Hi,

When using __gshared for variables at module level, it is my 
understanding that they should be initialized in the shared static this 
constructor. My question is: When having __gshared variables inside 
classes, where should I initialize these? Do classes have a shared 
static this constructor?

- Alex


More information about the Digitalmars-d-learn mailing list