diff options
author | Araq <rumpf_a@web.de> | 2014-11-14 02:03:51 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-11-14 02:03:51 +0100 |
commit | 03b152ac66e2e40d840f0ab64cc1edba6593b2c9 (patch) | |
tree | 59654b5970ab920c6b1b43a78768cc2bb7d0929b /doc/manual/stmts.txt | |
parent | a848c2d02b16bf55ff4e435ea40a465d42dda871 (diff) | |
download | Nim-03b152ac66e2e40d840f0ab64cc1edba6593b2c9.tar.gz |
fixes #1633
Diffstat (limited to 'doc/manual/stmts.txt')
-rw-r--r-- | doc/manual/stmts.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/manual/stmts.txt b/doc/manual/stmts.txt index 1307ff917..8d958733d 100644 --- a/doc/manual/stmts.txt +++ b/doc/manual/stmts.txt @@ -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 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 ---------- |