LDC, ARM: unnecessary default initialization

Johan Engelen via Digitalmars-d digitalmars-d at puremagic.com
Tue Aug 22 11:26:46 PDT 2017


On Friday, 18 August 2017 at 12:09:04 UTC, kinke wrote:
> On Friday, 18 August 2017 at 09:42:25 UTC, Jack Applegame wrote:
>> For some reason, the LDC default initializes the structure, 
>> even if initialization of all its members is specified as 
>> void. I believe that this is wrong.
>
> Afaik, this has been brought up multiple times already and is 
> so by design.

https://issues.dlang.org/show_bug.cgi?id=11331
https://issues.dlang.org/show_bug.cgi?id=11817
https://issues.dlang.org/show_bug.cgi?id=15951

It was discussed briefly during my DConf 2016 talk, and the 
status is that it is considered a performance bug. But it'll 
require spec changes / clarifications; Johannes listed a number 
already and maybe more it needed.

- Johan



More information about the Digitalmars-d mailing list