Unexplainable behaviour with direct struct assignment.
bauss
jj_1337 at live.dk
Thu May 19 06:09:21 UTC 2022
On Wednesday, 18 May 2022 at 21:52:18 UTC, HuskyNator wrote:
> On Wednesday, 18 May 2022 at 21:49:14 UTC, HuskyNator wrote:
>> After updating to `DMD 2.100.0` & `DUB 1.29.0`, I still get
>> this behavior.
>> Only when I use `dub run --b=debug` however (default for me).
>> `dub run --b=release` does return what one would expect.
>
> I don't know if this matters either, but I'm using windows 10
> (64 bits).
Can confirm this is the case for me too on Windows 10.
Release prints 50 3 times, debug prints 0, 50, nan.
This is with DMD, I currently don't have LDC or GDC installed on
this machine.
So it looks like a Windows bug, critical at that.
More information about the Digitalmars-d-learn
mailing list