summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--doc/manual.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/manual.rst b/doc/manual.rst
index 4c4b9c506..8206d8342 100644
--- a/doc/manual.rst
+++ b/doc/manual.rst
@@ -7912,6 +7912,7 @@ instructs the compiler to pass the type by value to procs:
     Vector {.bycopy.} = object
       x, y, z: float
 
+The Nim compiler automatically determines whether a parameter is passed by value or by reference based on the parameter type's size. If a parameter must be passed by value or by reference, (such as when interfacing with a C library) use the bycopy or byref pragmas.
 
 Byref pragma
 ------------