[Development] Conditional Deprecation Warnings

Thiago Macieira thiago.macieira at intel.com
Fri Oct 11 22:07:04 CEST 2013


On sexta-feira, 11 de outubro de 2013 11:30:23, Keith Gardner wrote:
> I had an idea about making conditional deprecation warnings for functions
> in Qt based on the destination platform.  The idea would be to get a
> compile time warning when using a function on a platform that the function
> does not supported.  An example would be calling
> QProcess::nativeArguments() on non a non-Windows platform since the
> documentation states that it is only available on Windows.  This could also
> probably be used to provide a custom deprecation warning message to the
> developer stating the limitation for that platform.
> 
> Would this be a useful idea or create too many headaches?

That might be useful, actually.

But not for this case. Trying to call nativeArguments() on a non-Windows 
platform already signals the problem with a full error. It's impossible to 
ignore this.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20131011/0d087f92/attachment.sig>


More information about the Development mailing list