Weird bug in std.logger? Possible memory corruption
matheus
matheus at gmail.com
Wed Nov 1 14:15:55 UTC 2023
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.
More information about the Digitalmars-d-learn
mailing list