[fpc-devel] Question about local variables initialization

Gennady Agranov gennadyagranov at gmail.com
Sat Sep 20 04:39:32 CEST 2014


Hi,

I do not have clear picture about initialization of local variables - 
are they initialized to some default value or not - and is there a way 
to assure that every local variable (including record types)  is set to 
some default?

Of course the safest approach is to assume that everything is not 
initialized and filled with garbage.

Is it always true? E.g. is there a way control initialization of record 
variables on stack?

Thanks,
Gennady




More information about the fpc-devel mailing list