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

  • June 16, 2025

    Generate, share and use web sessions One-Time Passcodes (OTP)

  • May 20, 2025

    Automatic Refresh of OEM Build Licenses

  • May 16, 2025

    New class to handle incoming TCP connections

Avatar
Damien Fuzeau
- Product Owner - Damien Fuzeau joined the 4D Product team in February 2019. As a Product Owner, he is responsible for writing user stories and translating them into functional specifications. His role also involves ensuring that the delivered feature implementations meet customer needs. Damien holds a degree in Software Engineering from the University of Nantes. He spent over 23 years at his previous company, first as a developer (discovering 4D in 1997), and later as Engineering Manager and Software Architect. The company was an OEM partner of 4D and deployed enterprise software based on 4D for thousands of users across hundreds of servers. Damien is therefore well-versed in 4D development and deployment in multilingual environments.
  • 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 HTTP 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 HTTP 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