Class inheritance bug

mta`chrono chrono at mta-international.net
Fri Nov 11 01:26:53 PST 2011


Hi Tobias,

in your last post you'd asked something about sockets and now you're
asking about threads which leads me to say: You don't need threads to
use thousands of sockets at the same time. There is Socket.select which
is some kind of multiplexer doing all the nasty shit for observating
multiple sockets. If you really wanna use threads, then please note: you
don't need to subclass it. you can of course but it also accepts a
delegate or a function in it's constructor.

----
import core.thread;

void foobar()
{

}

void main();
{
    Thread thread = new core.thread(&foobar);
    thread.start();
}
----


More information about the Digitalmars-d mailing list