mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 01:14:41 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user