float init 0 request

Kapendev alexandroskapretsos at gmail.com
Thu Aug 20 21:22:25 UTC 2026


On Thursday, 20 August 2026 at 12:46:30 UTC, monkyyy wrote:
> On Thursday, 20 August 2026 at 04:02:47 UTC, Walter Bright 
> wrote:
>> ```d
>> struct S {
>>     float f = 0;  // initializes struct to 0
>> }
>> float[100] a = 0; // initializes array to 0
>> ```
>
> I dont use a linter, your asking me to remember to do that 
> every single time; I dont.
>
> Using your own agrument for auto initialization for everything 
> else, this violates that. Your anti-initializing floats.

Happy ending.

![image](https://gcdnb.pbrd.co/images/r-SeOerZqhO7.png)


More information about the Digitalmars-d mailing list