[fpc-pascal] Variable Initialization Questions

Klaus Hartnegg hartnegg at gmx.de
Mon Feb 22 09:32:54 CET 2016


Am 18.02.2016 um 21:38 schrieb Jonas Maebe:
> all global variables are always zeroed.

but it is better to not rely on it because

> Local variables are never zeroed

and it is not uncommon that a part from main gets moved to a procedure, 
and all of a sudden you must add commands to initialize the variables. 
It is better to do it always, to avoid surprises.



More information about the fpc-pascal mailing list