float init 0 request

Walter Bright newshound2 at digitalmars.com
Fri Aug 14 17:40:20 UTC 2026


On 8/14/2026 5:48 AM, Indraj Gandham wrote:
> It's worth noting that the proposed change was implemented in OpenD

That's a mistake.

> and there have been very few complaints.

All it takes is one unintentional default initialization of 0.0 which leads to a 
subtle bug in your avionics code, banking software, I-beam design, data 
analysis, etc.

And yes, I have seen cases were a linter complained about lack of an initializer 
on C code, and the maintainer inserted "=0" which closed the issue, but 
introduced a bug.

The idea is to make such bugs OBVIOUS, not subtle.



More information about the Digitalmars-d mailing list