[fpc-pascal] how to use Default to replace this ' FillChar(aRecord, sizeof(aRecord), 0);

Dennis Poon dennis at avidsoft.com.hk
Mon Dec 5 12:46:02 CET 2016

Lars wrote:
> Do you know about this feature:
> var
>    SomeRec: TSomeRecord = ();
This is good for global variable.
But I wonder whether it has effect in procedure's local variable since 
it requires the compiler to clear the record on the stack (which is at 
different location every time).


More information about the fpc-pascal mailing list