How to initialize a globle variable nicely and properly?
    Neia Neutuladh 
    neia at ikeran.org
       
    Sat Dec 15 15:24:51 UTC 2018
    
    
  
On Sat, 15 Dec 2018 13:49:03 +0000, Heromyth wrote:
> Yes, it's very dangerous to create a new thread in shared static this().
> For a big project, it sometimes hard to identify this problem. Maybe,
> the compiler should do something for this, should it?
The runtime, more likely. There are plenty of problems in this vein that 
the compiler can't detect, but the runtime should be able to detect all of 
them.
Filed https://issues.dlang.org/show_bug.cgi?id=19492
    
    
More information about the Digitalmars-d-learn
mailing list