Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2017-07

FileAge deprecated in Delphi, but not in FPC

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

As past discussions showed, Free Pascal tries to be Delphi compatible regarding the RTL. I noticed that Delphi's FileAge() function [the one with a single parameter) has been deprecated in Delphi XE (circa 2010) onwards - might even have been earlier.

http://docwiki.embarcadero.com/Libraries/Berlin/en/System.SysUtils.FileAge

http://docwiki.embarcadero.com/VCL/2010/en/SysUtils.FileAge

Yet in FPC's RTL (code and documentation) there is no mention that it has been deprecated. Should FPC follow Delphi here?

https://www.freepascal.org/docs-html/rtl/sysutils/fileage.html

If FPC should follow Delphi, I'll create a patch (added to Mantis), and at the same time update the code example shown in the SysUtils.FileAge help.

Regards,
Graeme

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp

Reply by email

Michael Van Canneyt
to Graeme Geldenhuys
Graeme Geldenhuys wrote 20 lines
Hi, As past discussions showed, Free Pascal tries to be Delphi compatible regarding the RTL. I noticed that Delphi's FileAge() function [the one with a single parameter) has been deprecated in Delphi XE (circa 2010) onwards - might even have been earlier. http://docwiki.embarcadero.com/Libraries/Berlin/en/System.SysUtils.FileAge http://docwiki.embarcadero.com/VCL/2010/en/SysUtils.FileAge Yet in FPC's RTL (code and documentation) there is no mention that it has been deprecated. Should FPC follow Delphi here? https://www.freepascal.org/docs-html/rtl/sysutils/fileage.html If FPC should follow Delphi, I'll create a patch (added to Mantis), and at the same time update the code example shown in the SysUtils.FileAge help.

I don't think this API should be deprecated. Updating the code sample to show both forms would be a nice idea, though.

Michael.

Reply by email