Re: [AD] 4.3 error handling |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 2006-06-08, Chris <chris.kcat@xxxxxxxxxx> wrote:
> On Wednesday 07 June 2006 23:52, Peter Wang wrote:
> > They are completely independent in my example, e.g. API1 = graphics
> > library, API2 = network library. The _user_ is using both libraries,
> > but neither library knows or cares about the other.
>
> As they shouldn't. A graphics library wouldn't call network functions, and
> vice versa. I don't see what the problem is. The graphics library would jump
> to its catch on error, and the network lib would jump to its catch on error
> (just like using C++, the libs would/should throw an object of a type
> specific to their libraries).
You're right about this, sorry. I only just checked my understanding of
C++ exceptions now (after my exam). I was thinking of `finally' in Java.
Peter