goto skipping declarations

Walter Bright newshound2 at digitalmars.com
Mon Sep 22 17:31:49 UTC 2025


On 9/18/2025 7:03 PM, Steven Schveighoffer wrote:
> So the skipping of initialization is technically caught, it's just that D 
> default initializes and C does not.

In C, the function still returns an uninitialized value.

Some people on X told me that throwing more compiler switches, and/or running 
various linters and code analyzers, would detect the problem.

That's true, but the *language* as specified does not detect these problems.



More information about the Digitalmars-d mailing list