4D Blog

Home Product Warnings on Deprecated Language Elements

Warnings on Deprecated Language Elements

April 23, 2025

Product

With the release of 4D 20 R9, deprecated language elements now generate warnings, helping you keep your code as modern and efficient as possible. Let’s dive into the details.

In 4D 20 R9, new warnings have been introduced for deprecated language elements, including commands, constants, parameters, and typing directives. The following code lines will now trigger these warnings:

C_LONGINT($1)
C_BOOLEAN($draw)
_O_USE INTERNAL DATABASE
$draw:=Is license available(_o_4D Draw license)

 

blank

You can easily disable these warnings in the structure settings under the Compilation/Warnings page (refer to this blog post for more details).

Although it is still possible to enter them, deprecated commands and constants are no longer suggested in the code completion of code editors (built-in 4D code editor and Visual Studio Code).

To enhance your code introspection, we’ve also extended the Command name command. It now provides information on command deprecation in addition to thread safety details. Here is a simple sample to retrieve a command’s deprecation status:$commandName:=Command name($commandNumber; $info)
$isDeprecated:=($info ?? 1) // Check second bit

Finally, when deprecating commands, we will no longer prefix them with ‘_o_’. However, the deprecation statuses of commands are now explicitly detailed in the 4D Documentation! The new documentation currently does not include deprecated commands, but for all commands that will become deprecated in the future, you will see a banner like this:

blank

We hope this new feature will help you keep your code up to date.
Happy coding!

Discuss

Tags 20 R9, 21, Code editor, Compiler

Latest related posts

  • April 29, 2025

    Discover your AI-powered writing assistant in 4D Write Pro

  • April 28, 2025

    Unlock the Power of AI with 4D AIKit: Automate, Create, and Innovate

  • April 25, 2025

    Formulas in Label Wizard

Avatar
Damien Fuzeau
• Product Owner •Damien Fuzeau has joined the 4D Product team in February 2019. As a Product Owner, he is in charge of writing user stories, then translating them to functional specifications. His job also entails making sure that the feature implementations delivered are meeting the customer needs.Damien is graduated from the University of Nantes in software engineering. He spent more than 23 years in its former company, first as developer (discovering 4D in 1997), and later as engineering manager and software architect. This company is a 4D OEM partner and deployed 4D based business softwares for thousands users, on hundreds servers. So, Damien is used to 4D development and deployment in a multi-language context.
  • Deutsch
  • Français
  • English
  • Português
  • Čeština
  • Español
  • Italiano
  • 日本語

Categories

Browse categories

  • 4D View Pro
  • 4D Write Pro
  • 4D for Mobile
  • Email
  • Development Mode
  • 4D Language
  • ORDA
  • User Interface / GUI
  • Qodly Studio
  • Server
  • Maintenance
  • Deployment
  • 4D Tutorials
  • Generic
  • 4D Summit sessions and other online videos

Tags

4D-Analyzer 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R8 20 R9 Administration Authentication Build application CI/CD Class Client/Server Code editor Collections Compatibility settings Formula Google Listbox Logs Mail Network Objects ORDA PDF Pictures Preemptive Programming Qodly Studio REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience v20 vscode Web Word processor

Tags

4D-Analyzer 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R8 20 R9 Administration Authentication Build application CI/CD Class Client/Server Code editor Collections Compatibility settings Formula Google Listbox Logs Mail Network Objects ORDA PDF Pictures Preemptive Programming Qodly Studio REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience v20 vscode Web Word processor
Subscribe to 4D Newsletter

© 2025 4D SAS - All rights reserved
Terms & Conditions | Legal Notices | Data Policy | Cookie Policy | Contact us | Write for us


Subscribe to 4D Newsletter

* Your privacy is very important to us. Please click here to view our Policy

Contact us

Got a question, suggestion or just want to get in touch with the 4D bloggers? Drop us a line!

* Your privacy is very important to us. Please click here to view our Policy