www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Bad thread_attachThis() design

 From comments:

  * Registers the calling thread for use with the D Runtime.  If this 
  * is called for a thread which is already registered, the result is 

I think this is bad design. There is no good way to know if the current 
thread is attached to the runtime, so how am I supposed to work around this?

- Alex
Jan 10 2012