Re: spawn a function with object as arg?

2020-03-05 Thread Martin Brezel via Digitalmars-d-learn
On Thursday, 5 March 2020 at 03:04:10 UTC, Adam D. Ruppe wrote: You can also not use `spawn` and instead give `new Thread` a try from core.thread. Thanks for the hint, I didn't notice core.thread at all. I will definitely try it out. Unfortunately the documentation page for core.thread is curr

spawn a function with object as arg?

2020-03-04 Thread Martin Brezel via Digitalmars-d-learn
I want to create a Client, which receives and handles received data in background while the Client can send via the same socket. My first idea was something like this: class Client { private Socket socket; private Tid receiverTid; this(Socket socket) {

Re: total newbie + IDE

2020-02-09 Thread Martin Brezel via Digitalmars-d-learn
On Sunday, 9 February 2020 at 13:22:56 UTC, solnce wrote: I was expecting D lang to have something similar,if not an RAD, then native IDE with all that basic functionality support. VisualStudioCode seems to be what you are looking for - except I do not fully understand what you mean by "nativ

Execute certain Tests?

2019-11-02 Thread Martin Brezel via Digitalmars-d-learn
Is there a trick to execute only the test, defined in one file? Or the Tests of a certain Module? Or in general: How to avoid to execute all the tests, when running "dub test"? It doesn't has to be dub, though.