[fpc-pascal] does Advanced Record constructor automatically zero all the memory space of that record?

Dennis Poon dennis at avidsoft.com.hk
Tue Sep 24 12:36:46 CEST 2013


if not, is there a clean and easy way to initialize the entire record 
memory space to zeros e.g.

constructor TMyRecord.Create(TheValue : Integer);
begin
   FillChar(self, sizeof(Self), 0);
   Value := TheVal;
end;

Is there a Self variable for advanced record methods/constructors ?

By the way, is there an ultimate inherited constructor "Create" for all 
advanced record types?

I cannot find any info by googling, so had to ask for your help here.

Thanks in advanced.


Dennis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20130924/01c110b2/attachment.html>


More information about the fpc-pascal mailing list