<div dir="ltr"><div><div><div><div><div><div>Hello List,<br><br></div>After googled and searching in the documentation,<br><br><a href="http://free-pascal-general.1045716.n5.nabble.com/does-Advanced-Record-constructor-automatically-zero-all-the-memory-space-of-that-record-td5716755.html">http://free-pascal-general.1045716.n5.nabble.com/does-Advanced-Record-constructor-automatically-zero-all-the-memory-space-of-that-record-td5716755.html</a><br><a href="http://www.freepascal.org/docs-html/ref/refse23.html">http://www.freepascal.org/docs-html/ref/refse23.html</a><br><br>i still have doubts about variable initialization:<br><br></div>1 - Does the compiler automatically initialize all class fields when a new instance is created?<br></div>2 - Does the compiler initialize record fields?<br></div>3 - When i declare a pointer as a global variable or as a member of a record, can i assume that its initial value is nil?<br></div>4 - Is there any compiler switch regarding initialization of variables?<br><br></div>Best regards<br></div>