www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Thread Sub-Classes

If I inherit from Thread to create a new sub-class, how can I make the
main thread be of that type?

class MyThread : Thread
{
   [...]
}

void main(char[][] argv)
{
   MyThread mine = Thread.getThis();
   [...]
}

Thanks!

-- Brian
Mar 30 2008