[fpc-pascal] Initializing Records Automatically

Jonas Maebe jonas.maebe at elis.ugent.be
Mon Mar 24 12:11:50 CET 2008


On 24 Mar 2008, at 12:03, ik wrote:
> Since when are you using fillchar on a string in Pascal ? that's a C  
> approach.

He's using it on a record. Initialising records with fillchar  
(regardless of what they contain) is quite common in Pascal as well.  
And as Florian mentioned, if you do this for a record containing  
refcounted fields, you first have to call finalize() on it.


Jonas



More information about the fpc-pascal mailing list