On Tuesday, 31 October 2023 at 21:19:34 UTC, Arafel wrote:
...

Assigning the value to a variable works as expected:

```d
import std.logger : info;

void main() {
    auto s = foo();
    info(s);
}

auto foo() {
    info("In foo");
    return "Hello, world.";
}
```
...

Unless you do:

    string s;
    info(s=foo());

I think this is a bug, or at least very weird behavior.

Matheus.

Reply via email to