got rid of some mAddU64 etc. magics
This commit is contained in:
parent
695e9d5fb4
commit
43f057c5aa
7 changed files with 25 additions and 31 deletions
|
|
@ -1999,14 +1999,18 @@ exception handler may raise another exception. If the exception is not
|
|||
handled, it is propagated through the call stack. This means that often
|
||||
the rest of the procedure - that is not within a ``finally`` clause -
|
||||
is not executed (if an exception occurs).
|
||||
|
||||
|
||||
Except and finally statements
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
`except`:idx: and `finally`:idx: can also be used as a stand-alone statements.
|
||||
Any statements following them in the current block will be considered to be
|
||||
in an implicit try block:
|
||||
|
||||
.. code-block:: nimrod
|
||||
var f = fopen("numbers.txt", "r")
|
||||
finally: fcsole(f)
|
||||
var f = open("numbers.txt")
|
||||
finally: close(f)
|
||||
...
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue