On Sunday, 19 February 2023 at 18:29:05 UTC, Steven Schveighoffer wrote:
On 2/19/23 1:26 PM, Steven Schveighoffer wrote:

Testing with run.dlang.io, switching between `char` and `int` changes the ASM output to show whether it's stored or not.

And BTW, you can override this by assigning a zero default:

```d
struct S
{
    char[16384] array = 0; // no .init storage
}
```

-Steve

TIL. Nice trick!

Reply via email to