summary refs log tree commit diff stats
path: root/doc/manual.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/manual.txt')
-rwxr-xr-xdoc/manual.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/manual.txt b/doc/manual.txt
index 6d8286dd7..c2ae2c757 100755
--- a/doc/manual.txt
+++ b/doc/manual.txt
@@ -1526,6 +1526,14 @@ T = enum                        cast[T](0); this may be an invalid value
 ============================    ==============================================

 

 

+The implicit initialization can be avoided for optimization reasons with the

+`noinit`:idx: pragma: 

+

+.. code-block:: nimrod

+  var

+    a {.noInit.}: array [0..1023, char] 

+

+

 Const section

 ~~~~~~~~~~~~~

 

@@ -1781,6 +1789,7 @@ sugar for:
   result = expr

   return result

 

+

 ``return`` without an expression is a short notation for ``return result`` if

 the proc has a return type. The `result`:idx: variable is always the return

 value of the procedure. It is automatically declared by the compiler. As all