Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problem in use Deprecated or Experimental directive

Tags:

delphi

As you know in Delphi we can use Deprecated directive to say a method or ... is obsolete or supported only for backward compatibility and we can use Experimental directive to say current unit are in an unstable development state .

Deprecated & Experimental directives work properly in form,s unit , but when we use it on unit that we add to application manualy they don,t work and when compile application don,t show any warning message in message window .

May i should enable any directive like {$HINTS ON} or {$WARNINGS ON} in that unit ? Any one can help me ?

Thanks alot .

like image 809
Mojtaba Tajik Avatar asked May 25 '11 11:05

Mojtaba Tajik


1 Answers

I think you've answered the question yourself. These directives make the compiler emit warnings, but only if warnings are enabled at that point in the compilation. Note that these symbols produce warnings rather than hints.

I personally configure the compiler to treat the use of deprecated symbols as an error rather than a warning.

enter image description here

like image 89
David Heffernan Avatar answered Oct 04 '22 16:10

David Heffernan