[fpc-pascal] Variable Initialization Questions

Mazola Winstrol mazofeifer at gmail.com
Mon Feb 22 03:45:35 CET 2016


2016-02-18 18:38 GMT-02:00 Jonas Maebe <jonas.maebe at elis.ugent.be>:

> 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.
>
>
>
May i add a remark about the behavior of managed types in the
documentation?

http://www.freepascal.org/docs-html/current/ref/refse23.html#x55-730004.4

Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160221/44469867/attachment.html>


More information about the fpc-pascal mailing list