[fpc-pascal] how to initialize a SearchRec var?

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Thu Jan 2 22:27:25 CET 2014


Sven Barth wrote:
> === code begin ===
> 
> var
>   dirinfo: SearchRec;
> begin
>   dirinfo := Default(SearchRec);

Out of curiosity, does this work:

var
    dirinfo: SearchRec= Default(SearchRec);

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]



More information about the fpc-pascal mailing list