Large .init for class containing void-initialized struct

Johan Engelen via Digitalmars-d digitalmars-d at puremagic.com
Wed Dec 7 10:49:41 PST 2016


On Wednesday, 7 December 2016 at 00:35:21 UTC, ketmar wrote:
> On Wednesday, 7 December 2016 at 00:20:11 UTC, Ali Çehreli 
> wrote:
>> Is there a rationale for this or is this an implementation 
>> quality issue? Is there a bug already? I could not find one.
>>
>> Also, I failed to find the "= void" documentation e.g. not on 
>> the struct spec page.
>
> https://issues.dlang.org/show_bug.cgi?id=11331
> https://issues.dlang.org/show_bug.cgi?id=11817
>
> at least.

Yep, many bugs about it.

> i.e.: known inefficiency, but nobody feels that it is important 
> enough to get to the top of the list.

I think what's blocking things is:
```
T a;
T b;
assert(a == b);
```
Someone noted that that's a language guarantee, which would have 
to be relaxed for aggregates with `= void`initialized fields.

-Johan



More information about the Digitalmars-d mailing list