[gambit-list] finally blocks
    Phil Dawes 
    phil at phildawes.net
       
    Sat Jan 27 12:47:43 EST 2007
    
    
  
Hi Gambit List,
I'd like to have some functionality in gambit similar to 'finally' 
blocks in java/python where a block of code is always executed 
regardless of any exceptions thrown.
I'm currently using an exception handler that catches the exception and 
re-raises it after doing the cleanup stuff, but this loses the original 
'where the exception was raised from' metadata. Is there a better way?
(or a better idiom for resource cleanup that I should be using?)
Thanks,
Phil
    
    
More information about the Gambit-list
mailing list