If in doubt, why not to use the old-school records and an
init-value procedure.

thanks,
Dmitry

On Tuesday, September 24, 2013, Dennis Poon wrote:

> **
> 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
>
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to