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
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to