[fpc-pascal] RTFM question (?): which variables/fields are initialized by fpc?
bartjunk64 at gmail.com
Sun Feb 22 12:59:24 CET 2015
I cannot find it in the docs (probably not looking in the right place).
Which variables/class-fields are initialized by the compiler?
My understanding is that:
- global vars are initialized (zero, false, empty string etc)
- local vars are not
But what about class fields?
Typically I do
TA = Class
1. Is this necessary, and if not, for which types can it be omitted?
(skip if you know 2)
2. Where is it documented?
3. Does it work the same as in Delphi?
More information about the fpc-pascal