[fpc-pascal] Variable Initialization Questions

Jonas Maebe jonas.maebe at elis.ugent.be
Thu Feb 18 21:38:08 CET 2016


Mazola Winstrol wrote:
> Just to clarify: if i have a record type with a pointer field, this
> field will always zeroed?

No. As mentioned, all global variables are always zeroed. The type 
doesn't matter. Local variables are never zeroed, except if they are 
managed types. A pointer is not a managed type.


Jonas



More information about the fpc-pascal mailing list