Re: task can't take a class method

2018-11-19 Thread helxi via Digitalmars-d-learn
On Monday, 19 November 2018 at 17:18:14 UTC, John Chapman wrote: 1) task(&ddCall.dd) Thanks, that helped.

Re: task can't take a class method

2018-11-19 Thread John Chapman via Digitalmars-d-learn
On Monday, 19 November 2018 at 16:29:01 UTC, helxi wrote: On Monday, 19 November 2018 at 16:10:15 UTC, helxi wrote: ... Oh wait never mind I was missing a bracket: auto proc = task!(ddCall.dd()); Now I have another thing to worry about: ddcall.dd() cannot be read at compile time

Re: task can't take a class method

2018-11-19 Thread helxi via Digitalmars-d-learn
On Monday, 19 November 2018 at 16:10:15 UTC, helxi wrote: ... Oh wait never mind I was missing a bracket: auto proc = task!(ddCall.dd()); Now I have another thing to worry about: ddcall.dd() cannot be read at compile time.

task can't take a class method

2018-11-19 Thread helxi via Digitalmars-d-learn
I want to create a task out of an object's method. My Class is: public class Calldd { private: const string tmpFileName = "/tmp/nixwriter.progress.txt"; string deviceName, sourceFileName; public: this(in string sourceFileName, in string deviceName) { this.sourceFileName =