diff options
author | Araq <rumpf_a@web.de> | 2014-11-14 02:25:16 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-11-14 02:25:16 +0100 |
commit | a7538a9727e8ab9cf23aff4b1a848e40e690131f (patch) | |
tree | 5fe632fc8dfc8e3df654784a9d7d727d863a80d1 /doc/manual/procs.txt | |
parent | 65ca05730dd91f8a9c2408379415bca19f0c74ba (diff) | |
download | Nim-a7538a9727e8ab9cf23aff4b1a848e40e690131f.tar.gz |
fixes #1324
Diffstat (limited to 'doc/manual/procs.txt')
-rw-r--r-- | doc/manual/procs.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/manual/procs.txt b/doc/manual/procs.txt index 5fda7bb0f..e03845d76 100644 --- a/doc/manual/procs.txt +++ b/doc/manual/procs.txt @@ -297,6 +297,11 @@ One can use `tuple unpacking`:idx: to access the tuple's fields: assert y == 3 +**Note**: ``var`` parameters are never necessary for efficient parameter +passing. Since non-var parameters cannot be modified the compiler is always +free to pass arguments by reference if it considers it can speed up execution. + + Var return type --------------- |