summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-07-16 23:00:57 +0200
committerAraq <rumpf_a@web.de>2012-07-16 23:00:57 +0200
commit8d99753d6320489e4de8cf186415b0a7be8260b4 (patch)
tree2008a25dac1df222efc2c205fdf772ba5a533ecc /doc
parent56b4e3ad91a0dda632ba6bab7139665a3da163d3 (diff)
downloadNim-8d99753d6320489e4de8cf186415b0a7be8260b4.tar.gz
preparations for making 'closure' the default calling convention for proc types
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/manual.txt21
1 files changed, 11 insertions, 10 deletions
diff --git a/doc/manual.txt b/doc/manual.txt
index 31b2b6585..36e444170 100755
--- a/doc/manual.txt
+++ b/doc/manual.txt
@@ -1177,6 +1177,17 @@ that expects a proc of the calling convention ``closure``.
 

 Nimrod supports these `calling conventions`:idx:\:

 

+`nimcall`:idx:

+    is the default convention used for a Nimrod **proc**. It is the

+    same as ``fastcall``, but only for C compilers that support ``fastcall``.

+

+`closure`:idx:
+    is the default calling convention for a **procedural type** that lacks
+    any pragma annotations. It indicates that the procedure has a hidden
+    implicit parameter (an *environment*). Proc vars that have the calling
+    convention ``closure`` take up two machine words: One for the proc pointer
+    and another one for the pointer to implicitely passed environment.

+

 `stdcall`:idx:

     This the stdcall convention as specified by Microsoft. The generated C

     procedure is declared with the ``__stdcall`` keyword.

@@ -1203,16 +1214,6 @@ Nimrod supports these `calling conventions`:idx:\:
     Fastcall means different things to different C compilers. One gets whatever

     the C ``__fastcall`` means.

 

-`nimcall`:idx:

-    Nimcall is the default convention used for Nimrod procedures. It is the

-    same as ``fastcall``, but only for C compilers that support ``fastcall``.

-

-`closure`:idx:

-    indicates that the procedure has a hidden implicit parameter

-    (an *environment*). Proc vars that have the calling convention ``closure``

-    take up two machine words: One for the proc pointer and another one for

-    the pointer to implicitely passed environment.

-

 `syscall`:idx:

     The syscall convention is the same as ``__syscall`` in C. It is used for

     interrupts.