[Qgis-developer] [GRASS-dev] GRASS & QGIS: the future
Martin Landa
landa.martin at gmail.com
Fri Apr 18 03:20:15 PDT 2014
Hi,
2014-04-18 11:31 GMT+02:00 Radim Blazek <radim.blazek at gmail.com>:
[....]
> Unfortunately GRASS 7 moved ahead towards its aim "to make life harder
> for anyone trying to use the GRASS libraries" [1]. Basically more and
personally I am not fan of this approach. I still think that we should
provide in GRASS API function like G_set_fatal_error() with default
value G_FATAL_ERROR_EXIT (current behaviour). The second option would
be G_FATAL_ERROR_RETURN with big big warning in the API manual that
you are living GRASS libraries in completely unpredictable state and
you should immediately stop an application which is using GRASS
libraries. There no so big chance that someone will rewrite GRASS
libraries to be suitable for long running applications, on the other
hand we should allow in API possibility to avoid calling exit with big
warning to the programmer. Than it will be his/her responsibility if
he/she uses G_FATAL_ERROR_RETURN.
Martin
More information about the Qgis-developer
mailing list