[fpc-devel] Wrong docs: not initialized global variables

Sven Barth pascaldragon at googlemail.com
Wed Jul 4 07:28:18 CEST 2018


Am 04.07.2018 um 00:00 schrieb Nikolay Nikolov:
> So, even though filling objects with zero introduces a small runtime 
> overhead, it saves a lot of pain and prevents difficult to find bugs 
> (people quite often don't test exceptions raised in the constructor).
And I don't know how often I've been bitten by C++ not zero-initializing 
class members by default, so I'm definitely a fan of this behaviour in 
Object Pascal :D

Regards,
Sven



More information about the fpc-devel mailing list