Fixing C's Biggest Mistake

Walter Bright newshound2 at digitalmars.com
Tue Dec 27 22:55:55 UTC 2022


On 12/27/2022 11:12 AM, Max Samukha wrote:
> Yeah, but in case of an int, you never can tell whether the programmer wanted to 
> initialize it to 0 or forgot to initialize it.

It's better than C++'s approach of default initializing it with a random bit 
pattern.



More information about the Digitalmars-d mailing list