__gshared and static constructors

2012-01-04 Thread Alex Rønne Petersen
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 construct

Re: __gshared and static constructors

2012-01-04 Thread Mike Parker
On 1/5/2012 4:14 AM, Alex Rønne Petersen wrote: 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? D

Re: __gshared and static constructors

2012-01-04 Thread Jacob Carlborg
On 2012-01-04 20:14, Alex Rønne Petersen wrote: 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? D