Hi Jürgen

On 01/24/2013 09:37 AM, Jürgen E. Fischer wrote:
Hi Matthias,

On Thu, 24. Jan 2013 at 08:59:47 +0100, Matthias Kuhn wrote:
The question is, where and when to communicate it to the developer:
  * The MessageLog (why not)
Already done in f2029b4ec.
Nice.
How do I need to tag deprecated methods to trigger this?

Python 2.7 disabled the deprecation warnings by default.  But the would have
gone to stderr anyway (which is "invisible" for most users).

I would propose to add a QGS_DEPRECATED macro which could be placed in
any deprecated method which will take appropriate actions and
deprecation methods will appear in a standardized way.
We (or better put Qt) already have that too (Q_DECL_DEPRECATED).  But there
it's a compile time warning - and apparently not everyone builds with PEDANTIC
enabled...
... and for python plugins there is no compile time ...

Jürgen


Matthias
_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to