Delphi supports "deprecated" and "platform" (and maybe more) for units.
Original Reporter info from Mantis: marco @marcoonthegit
-
Reporter name: Marco van de Voort
Original Reporter info from Mantis: marco @marcoonthegit
- Reporter name: Marco van de Voort
Description:
Syntax
unit something deprecated;
interface
...
A semi colon between something and deprecated is not allowed.
Maybe these should have an extension with a message that can be inserted to the compiler warning/message ? I saw a remark about such extension somewhere , but don't if was a feature of a newer Delphi, or just a suggestion to do so:
unit something platform 'replaced by unit xxx';
The extension could be used to make a difference between e.g. units specific to a platform and to a group of platforms (e.g. Unix)
Mantis conversion info:
- Mantis ID: 13373
- Fixed in version: 2.6.0
- Fixed in revision: 14767 (#25298fbc)