> All of the Pascals that I have used allowed the
> following shorthand, an extension:
> reset(aFile, FileNameString); {or rewrite, etc.}
> I tried overloading reset() ... but it didn't work.

procedure reset(var f:text; const fn:string);
begin
  assign(f, fn);
  system.reset(f);
end;

procedure reset(var f:file; const fn:string);
begin
  assign(f, fn);
  system.reset(f);
end;

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to