>  > G_fatal_error() is too low level not only for messages but in general,
> for
> > Python libraries wrapping GRASS library, it does not allow to throw an
> > exception in case of an error. And the same applies for C++ wrappers.
>
> If you want to turn fatal errors into exceptions, the correct way to
> do it is to use setjmp/longjmp (and contribute patches to make any
> intervening code exception-safe).
>

As I wrote before, I hope that RPC approach suggested here by Soeren will
work for languages with exceptions and for persistent applications while
GRASS modules will benefit from the advantages of GRASS library with
G_fatal_error() with exit().

Vaclav
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to