Re: [fpc-pascal]Behavior of system.New procedure

2004-07-02 Thread Jérémie LEFRANCOIS
You are not to presume anything. Perhaps it will be random, perhaps it will be zero filled - depends on the compiler amongst other things. You must do as if it contains the most unexpected data, and therefore initialise the fields *yourself*, and the safer is to do it the quicker. Regards. En

[fpc-pascal]Behavior of system.New procedure

2004-07-01 Thread Luiz Américo
If someone can help me with this... Take the following example: type TRec = record Apointer:Pointer; AInt:Integer; end; PRec = ^TRec; var Arec:PRec; Return:Boolean; begin New(ARec); Return:=ARec^.APointer = nil; (Always True ?) Return:=ARec^.Aint = 0; (Always True ?) end. My question