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 is: after allocating a new instance for Arec with New proc, the record fields (APointer and Aint) will be always zero filled or will receive random values?

Thanks in advance

Luiz



_______________________________________________
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to