[fpc-pascal] readonly variables

Jonas Maebe jonas.maebe at elis.ugent.be
Sun Nov 29 19:59:08 CET 2009


On 29 Nov 2009, at 19:20, Mehmet Erol Sanliturk wrote:

> My experience with Windows XP Professional is that it is NOT zeroing the memory . I know this from actual Delphi ( and also Free Pascal ) compiled program executions . Due to this I am explicitly initializing all of the local simple variables , elements of records .

The discussion was about global variables, not about local variables. Local variables are indeed not initialised (not in FPC nor in Delphi/TP).


Jonas


More information about the fpc-pascal mailing list