[Qgis-developer] Question re api freeze

Martin Dobias wonder.sk at gmail.com
Mon May 19 05:30:49 PDT 2014

On Fri, May 16, 2014 at 3:07 PM, Hugo Mercier <hugo.mercier at oslandia.com> wrote:
> Le 15/05/2014 12:03, Nyall Dawson a écrit :
>> Hi all,
>> Quick question about the api freeze for the qgis 2 series - am I
>> allowed to change a function which is currently a void to instead
>> return a bool? Does this classify as an api break, or would this be
>> allowed?
> Hi Nyall,
> Good question :)
> I would say : we have to ensure that the new API does not break
> compilation of a code designed with the previous API.
> And since calling a function returning bool and ignoring its returned
> parameter is not a compilation error in C++, and it does not neither
> break a Python code calling it, I'd see no problem.
> Can others confirm ?

I also consider a change of return value from void to non-void to be
source compatible change and therefore allowed.


More information about the Qgis-developer mailing list