Malfunction in use Outdated or experimental directive

As you know, in Delphi we can use the Deprecated directive to say that the method is either ... deprecated or supported only for backward compatibility, and we can use the Experimental directive, according to which the current unit is in a state of unsustainable development.

Deprecated and experimental directives work correctly in the form, but if we use it on the module that we add to the manualy application, they do not work, and when they compile the don application, they show some warning message in the message box.

Can I include any directive such as {$ HINTS ON} or {$ WARNINGS ON} in this block? Can anybody help me?

Thanks a lot.

+6
source share
1 answer

I think you yourself answered the question. These directives make the compiler issue warnings, but only if warnings are included at this point in the compilation. Please note that these symbols generate warnings, not prompts.

I personally configure the compiler to consider using deprecated characters as errors, not warnings.

enter image description here

+7
source

Source: https://habr.com/ru/post/888996/


All Articles