Using shorthand *= leads to unexpected result?

Michael via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun May 15 10:14:16 PDT 2016


On Sunday, 15 May 2016 at 14:12:47 UTC, Marc Schütz wrote:
> On Sunday, 15 May 2016 at 13:01:45 UTC, Michael wrote:
>> It may be that I'm doing something wrong here, but after 
>> updating DMD to the latest version, my simulations started 
>> producing some very odd results and I think I've pinpointed it 
>> to a sign inversion that I was making. Here is some code from 
>> dpaste to demonstrate the behaviour I get vs. the behaviour I 
>> expected:
>> https://dpaste.dzfl.pl/9bd7aea75fb2
>>
>> Any ideas? Am I getting something wrong or is this some sort 
>> of regression with the latest DMD?
>
> It's a regression introduced here:
> https://github.com/dlang/dmd/pull/5534
>
> I've filed a bug report:
> https://issues.dlang.org/show_bug.cgi?id=16027

Thanks for filing the bug report, and good find with the 
regression.


More information about the Digitalmars-d-learn mailing list