=void in struct definition
Jonathan M Davis
newsgroup.d at jmdavisprog.com
Mon Apr 9 11:22:16 UTC 2018
On Monday, April 09, 2018 14:06:50 Shachar Shemesh via Digitalmars-d wrote:
> struct S {
> int a;
> int[5000] arr = void;
> }
>
> void func() {
> S s;
> }
>
> During the s initialization, the entire "S" area is initialized,
> including the member arr which we asked to be = void.
>
> Is this a bug?
It looks like Andrei created an issue about it as an enhancement request
several years ago:
https://issues.dlang.org/show_bug.cgi?id=11331
- Jonathan M Davis
More information about the Digitalmars-d
mailing list