[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GNUstep error handling
From: |
Richard Frith-Macdonald |
Subject: |
Re: GNUstep error handling |
Date: |
Tue, 13 Mar 2018 08:32:28 +0000 |
> On 13 Mar 2018, at 01:52, amon <amon@vnl.com> wrote:
>
> I've run across documentation in GNUstep that talks of NS_HANDLER,
> etc, which I've never used. I presume this is something relatively
> new from the Apple world as I don't remember it (or any error
> handler) from NeXTstep and in fact I've pretty much always used
> @try/@catch/@finally for about as long as I can remember and I
> think before that I just rolled my own stack unwinder error
> handler.
>
> Are they just macro covers over the original syntax or do they
> add some features?
>
> I use a lot of @throw NSException's since daemon code is not
> allowed to not work. It has to punt to a level that can retry,
> no matter what goes wrong with the outside world. Hey, you never
> know... a solar flare might have taken out the server I'm
> taking data from!
>
> Are there any overriding reasons to shift an old body of code
> over to the new method?
NS_HANDLER is the *original* exception handler, which predates @catch (it was
the only exception handling mechanism for many years).
If you are only using platforms with modern compilers, you don't need it.
- Re: Use of NSZoneStat(), (continued)
- Re: Use of NSZoneStat(), amon, 2018/03/08
- Re: Use of NSZoneStat(), Fred Kiefer, 2018/03/08
- Re: Use of NSZoneStat(), amon, 2018/03/08
- Re: Use of NSZoneStat(), amon, 2018/03/08
- Re: Use of NSZoneStat(), amon, 2018/03/09
- Re: Use of NSZoneStat(), Richard Frith-Macdonald, 2018/03/09
- Re: Use of NSZoneStat(), Ivan Vučica, 2018/03/10
- Re: Use of NSZoneStat(), amon, 2018/03/10
- Re: Use of NSZoneStat(), Ivan Vučica, 2018/03/10
- GNUstep error handling, amon, 2018/03/12
- Re: GNUstep error handling,
Richard Frith-Macdonald <=
- Re: GNUstep error handling, amon, 2018/03/13
- Re: GNUstep error handling, Richard Frith-Macdonald, 2018/03/14
- Re: Use of NSZoneStat(), David Chisnall, 2018/03/09