Re: [Vala] How to ignore exceptions?



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]