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

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to