Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Functional > try ... finally...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 2776 of 2841
Post > Topic >>

try ... finally ...

by "David B. Benson" <dbenson@[EMAIL PROTECTED] > Feb 20, 2008 at 03:10 PM

Irrespective of the detailed syntax, I want to be sure I
understand the operational semantics of try ... finally.
The following SML fragment is supposed to treat the
three different situations, as an example.

fun complain exn = ...
fun final() = ...

fun foo x =
        (f(x) before final())
           handle Domain => (complain Domain; final())
                   |  exn => (final(); raise exn)

Is this correct?




 6 Posts in Topic:
try ... finally ...
"David B. Benson&quo  2008-02-20 15:10:04 
Re: try ... finally ...
"David B. Benson&quo  2008-02-20 16:34:34 
Re: try ... finally ...
rossberg@[EMAIL PROTECTED  2008-02-21 06:05:50 
Re: try ... finally ...
"David B. Benson&quo  2008-02-21 15:12:28 
Re: try ... finally ...
Ian.Stark@[EMAIL PROTECTE  2008-02-28 11:16:16 
Re: try ... finally ...
"David B. Benson&quo  2008-02-28 11:13:58 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon May 12 0:51:44 CDT 2008.