Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6661755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:19:02+00:00 2026-05-26T02:19:02+00:00

I would like to mark certain elements, functions and classes as deprecated, so that

  • 0

I would like to mark certain elements, functions and classes as deprecated, so that the compiler generates a warning.

My intention is to modernize certain aspects of the source. Especially when focusing on more platform independence.

E.g. By marking the WinAPI and special Windows classes (such as TRegistry) as “deprecated” they could be replaced or at least moved and made platform independent.
As for the language elements, I would especially like to deprecate the with, label and goto keywords.

I already tried to generate a warning for functions and classes by inserting a {$IF DECLARED(...)}{$MESSAGE WARN...} into the bottom of the unit file, but this will evidently fail with the core units…

Does somebody know a Tool that does this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T02:19:03+00:00Added an answer on May 26, 2026 at 2:19 am

    As an alternative to warnings, you could go with a simple app that parses all source code and reports the use of these constructs.

    With a little investigation, I’m sure you can find some static code analysis tools that will even go a bit further and alert you to certain code-smells. (E.g. incorrect use of try..finally, swallowed exceptions).

    Plug the app or the static code analyser in as a step in your build process, and you have the equivalent to compile-time warnings.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string that I would like to validate a certain pattern for:
I would like to mark some pages in my site that is currently in
I have a string property on an entity that I would like to mark
I would like emacs to mark files that are generated as read-only when they're
I'm rendering a form. I would like to put a mark next to all
Would like to make anapplication in Java that will not automatically parse parameters used
I would like to mark an arbitrary group of commits/changesets with a label. Commit
I have a question I would like to mark a point on a map
I have a few Python packages that I would like to tidy up and
I would like to mark a folder as 'its content will be excluded from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.