fixes #1633
This commit is contained in:
parent
a848c2d02b
commit
03b152ac66
1 changed files with 4 additions and 0 deletions
|
|
@ -607,6 +607,10 @@ type name replaces the procedure name. A type conversion is always
|
||||||
safe in the sense that a failure to convert a type to another
|
safe in the sense that a failure to convert a type to another
|
||||||
results in an exception (if it cannot be determined statically).
|
results in an exception (if it cannot be determined statically).
|
||||||
|
|
||||||
|
Ordinary procs are often preferred over type conversions in Nim: For instance,
|
||||||
|
``$`` is the ``toString`` operator by convention and ``toFloat`` and ``toInt``
|
||||||
|
can be used to convert from floating point to integer or vice versa.
|
||||||
|
|
||||||
|
|
||||||
Type casts
|
Type casts
|
||||||
----------
|
----------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue