Top  Previous  Next

What is translated > finally


The Delphi keyword finally is substituted by the keyword __finally for CBuilder. For other compilers it is translated by:




  ... // statements



... // statements


But this translation will not handle "exit" or "goto" or other non-exception ways of leaving the current code block. If you 'return' from within a 'try' block, the 'finally' code will be skipped.


This page belongs to the Delphi2Cpp Documentation

Delphi2Cpp home  Content