diff options
Diffstat (limited to 'doc/manual/pragmas.txt')
-rw-r--r-- | doc/manual/pragmas.txt | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/doc/manual/pragmas.txt b/doc/manual/pragmas.txt index bd90cd73d..023895f73 100644 --- a/doc/manual/pragmas.txt +++ b/doc/manual/pragmas.txt @@ -70,7 +70,7 @@ compileTime pragma The ``compileTime`` pragma is used to mark a proc or variable to be used at compile time only. No code will be generated for it. Compile time procs are useful as helpers for macros. Since version 0.12.0 of the language, a proc -that uses ``system.NimNode`` within its parameter types is implictly declared +that uses ``system.NimNode`` within its parameter types is implicitly declared ``compileTime``: .. code-block:: nim @@ -733,7 +733,8 @@ about the ``importcpp`` pragma pattern language. It is not necessary to know all the details described here. -Similar to the `importc pragma for C <manual.html#importc-pragma>`_, the +Similar to the `importc pragma for C +<#foreign-function-interface-importc-pragma>`_, the ``importcpp`` pragma can be used to import `C++`:idx: methods or C++ symbols in general. The generated code then uses the C++ method calling syntax: ``obj->method(arg)``. In combination with the ``header`` and ``emit`` @@ -955,10 +956,11 @@ Produces: ImportObjC pragma ----------------- -Similar to the `importc pragma for C <manual.html#importc-pragma>`_, the -``importobjc`` pragma can be used to import `Objective C`:idx: methods. The -generated code then uses the Objective C method calling syntax: ``[obj method -param1: arg]``. In addition with the ``header`` and ``emit`` pragmas this +Similar to the `importc pragma for C +<#foreign-function-interface-importc-pragma>`_, the ``importobjc`` pragma can +be used to import `Objective C`:idx: methods. The generated code then uses the +Objective C method calling syntax: ``[obj method param1: arg]``. +In addition with the ``header`` and ``emit`` pragmas this allows *sloppy* interfacing with libraries written in Objective C: .. code-block:: Nim |