Dechenjm / crack-language

Automatically exported from code.google.com/p/crack-language
Other
0 stars 0 forks source link

Implement the "finally" clause. #80

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In the absence of full closures, it's still useful to be able to specify a 
finally clause in a try/catch block.  Examples:

  try {
    ...
  } finally {
    ...
  } catch (Exception ex) {
    ...
  }

The 'finally' clause is executed after all cleanups within the try block, 
before the "catch" clause, if it is executed.  It is executed regardless of 
how the block is terminated (either by return, caught exception, uncaught 
exception or transfer of control to code outside of the block)

Original issue reported on code.google.com by mind...@gmail.com on 20 May 2011 at 11:37