float init 0 request

claptrap clap at trap.com
Sat Aug 15 09:59:16 UTC 2026


On Friday, 14 August 2026 at 17:40:20 UTC, Walter Bright wrote:
> On 8/14/2026 5:48 AM, Indraj Gandham wrote:
>
> 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.

You haven't solved this problem, the guy who sees an 
uninitialized float and inserts a zero, will do exactly the same 
when he sees a default initialized float. He'll lob a zero in, 
compile and run and see if it's "fixed".

Default to NaN doesn't fix that.


More information about the Digitalmars-d mailing list