Re: templated overload of opAssign

2021-04-04 Thread frame via Digitalmars-d-learn
On Sunday, 4 April 2021 at 18:05:04 UTC, tsbockman wrote: Thus, the solution is to use an explicit `delegate` instead of `lazy`: Yes, I forgot to mention that. Could you please explain why you set 'scope' here? Isn't it wanted to keep references here?

Re: templated overload of opAssign

2021-04-04 Thread tsbockman via Digitalmars-d-learn
On Sunday, 4 April 2021 at 16:38:10 UTC, frame wrote: On Saturday, 3 April 2021 at 13:46:17 UTC, kdevel wrote: Why does this code ec.opAssign (bar (1)); // okay // ec = bar (1); // Error: expression bar(1) is void and has no value compile with the abovementioned error? You cannot a

Re: templated overload of opAssign

2021-04-04 Thread frame via Digitalmars-d-learn
On Saturday, 3 April 2021 at 13:46:17 UTC, kdevel wrote: Why does this code ec.opAssign (bar (1)); // okay // ec = bar (1); // Error: expression bar(1) is void and has no value compile with the abovementioned error? You cannot assign void returned from bar() as parameter to opAssig

Re: Is dlang.slack.com down?

2021-04-04 Thread Imperatorn via Digitalmars-d-learn
On Sunday, 4 April 2021 at 11:12:36 UTC, Per Nordlöw wrote: Trying to access https://dlang.slack.com/ hangs for minutes on my machine. I'm only using the app, same thing there for you? 🤔

Is dlang.slack.com down?

2021-04-04 Thread Per Nordlöw via Digitalmars-d-learn
Trying to access https://dlang.slack.com/ hangs for minutes on my machine.