On 03 Apr 2009, at 03:43, Richard Ward wrote:

5) Although I can't remember reading it anywhere, I've noticed from my own demo programs that the addresses of objects are initially set to nil.

That is not correct. All global variables (classes/objects or not) are initialized to 0/nil, but local variables aren't (except in case of reference-counted types). Moreover, the contents of a class instance are also zeroed when creating it.


Jonas
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to