diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2011-12-31 12:20:03 -0800 |
|---|---|---|
| committer | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2011-12-31 12:20:03 -0800 |
| commit | eba891e989bd8e051e853b1760824013ce23da3a (patch) | |
| tree | cf5e30c7c8c5f86f741a358467bda8ca3bd022bc /doc/tutorial | |
| parent | 8319b5a252c39716f74c96cea22b3024fb707097 (diff) | |
tutorial: Mention by-value argument passing style.
Diffstat (limited to 'doc/tutorial')
| -rw-r--r-- | doc/tutorial/args.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/tutorial/args.md b/doc/tutorial/args.md index 1797f5a23f5..de2fe3bf25e 100644 --- a/doc/tutorial/args.md +++ b/doc/tutorial/args.md @@ -104,6 +104,9 @@ Another style is by-move, which will cause the argument to become de-initialized on the caller side, and give ownership of it to the called function. This is written `-`. +Sometimes you need to pass a structural type by value, such as when +interfacing with external native functions. This is written `++`. + Finally, the default passing styles (by-value for non-structural types, by-reference for structural ones) are written `+` for by-value and `&&` for by(-immutable)-reference. It is sometimes necessary to |
