Date: Thu, 4 Nov 1999 08:54:23 -0800 (PST)
From: Archie Cobbs <archie@whistle.com>
To: nate@mt.sri.com (Nate Williams)
Cc: freebsd-java@FreeBSD.ORG
Subject: Re: try { } catch { } finally { } in C!
Message-ID: <199911041654.IAA84330@bubba.whistle.com>
In-Reply-To: <199911040535.WAA13295@mt.sri.com> from Nate Williams at "Nov 3, 1999 10:35:49 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
Nate Williams writes:
> > > > Did you know that try { } catch { } finally { } is possible from C?
> > > > Well, GNU C anyway..
> > >
> > > Cool. As long as your program isn't using setjmp/longjmp, it works. :)
> >
> > I think it would still work even if it was... different jump buffers.. ?
>
> Hmmm......, I'm not sure. I know that someone just posted about an
> error they had using the thread libraries and setjmp(), but you could be
> right. I was wondering about this very thing last night working on the
> JDK....
Of course, if you longjmp() from within a try {} block, the finally
part wouldn't get run..
Also I think some thread libraries use setjmp/longjmp in order to
do context switching, so that could definitely confuse things.
Anyway, it should work OK in 'standard' programs..
-Archie
___________________________________________________________________________
Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199911041654.IAA84330>
