realbasic-nug
[Top] [All Lists]

Re: Sanity check: Finally

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Sanity check: Finally
From: Norman Palardy <npalardy at great-white-software dot com>
Date: Fri, 30 Dec 2005 21:36:06 -0700
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <BFDB638D dot 7783%Ed at Kleban dot com> <0CE338CB-E7F9-4338-8C9A-F97BFFCC63C4 at athenet dot net>

On Dec 30, 2005, at 9:28 PM, Adam Ernst wrote:

On Dec 30, 2005, at 10:22 PM, Ed Kleban wrote:

I.e. is the finally clause guaranteed to execute before the catch clause
raises the error again?

I'm not sure. The documentation states:

Code in this block will be executed even if an exception has occured, whether the exception was handled or not.

That could be read either way: that first the exception is handled, including propagating it all the way up the chain, and then the finally block executes, OR that finally will be executed first, then the exception is handled.

Personally, I'd bet that the exception is propagated first, then the finally block is called, but I'm too lazy to test that...

And there are exceptions that can not be caught using try catch

See bug report ID otrltbzq

and it still applies in 2005r4


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>