Static constructors?
Dave
ddionisio at renegadeware.com
Wed Jul 21 22:54:15 PDT 2010
On 7/21/2010 7:27 PM, awishformore wrote:
> On 22/07/2010 03:36, Sean Kelly wrote:
>> Make the ctors "shared static this()" -- those are only constructed
>> once when the process starts up. The non-shared static ctors are
>> thread-local.
>
> That concept is really weird, though. So this applies to anything
> static, not just variables?
I had the same issue, I believe this pretty much explains it all:
http://www.digitalmars.com/d/2.0/migrate-to-shared.html
More information about the Digitalmars-d-learn
mailing list