Re: [Vala] How to ignore exceptions?
- From: Jim Peters <jim uazu net>
- To: Aleksander Wabik <alex wabik gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] How to ignore exceptions?
- Date: Mon, 31 Oct 2011 20:12:38 -0500
Aleksander Wabik wrote:
If there aren't any situations where ';' goes after '}', such
situations should probably not be introduced. Syntax should be
consistent. nocatch{} is then probably better than try{};, but I still
like code attributes solution the most. The feature of pointing out
exceptions that should be ignored is IMO pure code-generation thing,
you don't change any logic by using nocatch {} instead of just ignoring
the exception handling, you change only the generated code.
Maybe a different VAPI wrapper for the C function could be written
that doesn't generate an exception, if the exception is never useful.
So there could be two calls: do_something() and
do_something_ignore_error().
Jim
--
Jim Peters (_)/=\~/_(_) jim uazu net
(_) /=\ ~/_ (_)
UazĂș (_) /=\ ~/_ (_) http://
in Peru (_) ____ /=\ ____ ~/_ ____ (_) uazu.net
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]