float init 0 request
Serg Gini
kornburn at yandex.ru
Mon Aug 17 07:52:21 UTC 2026
On Sunday, 16 August 2026 at 02:00:29 UTC, Walter Bright wrote:
> BTW, C and C++ will default initialize all variables to garbage
> when they are declared as a function local! Those are very hard
> to track down. I once spent 3 days trying to track one down. It
> scarred me for life.
I think we should stop comparing with 50 years old languages. The
bar is too low.
I've checked what modern system languages are doing:
Mojo, Swift, Zig and Rust are not allowing to declare
uninitialized float.
Go is making it 0.0
More information about the Digitalmars-d
mailing list