Clarify documentation about "except clauses"
They're called type conversions. Type casts are done with cast[T](...) and are not type safe.
This commit is contained in:
parent
1a76d26360
commit
c45367fc55
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ raised:
|
|||
|
||||
Note that ``getCurrentException`` always returns a ``ref Exception``
|
||||
type. If a variable of the proper type is needed (in the example
|
||||
above, ``IOError``), one must use an explicit cast:
|
||||
above, ``IOError``), one must convert it explicitly:
|
||||
|
||||
.. code-block:: nim
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue