diff options
author | Grzegorz Adam Hankiewicz <gradha@imap.cc> | 2014-06-21 19:35:40 +0200 |
---|---|---|
committer | Grzegorz Adam Hankiewicz <gradha@imap.cc> | 2014-06-21 22:22:52 +0200 |
commit | 9ed984201db1c16d91c3137b622008afb19dfc5a (patch) | |
tree | 80e866fe7f4d82216de0fdd3b7e032569d6bcaf0 /doc/nimrodc.txt | |
parent | d927eb5854e9c6c005344bc81d4632ffc8f5d975 (diff) | |
download | Nim-9ed984201db1c16d91c3137b622008afb19dfc5a.tar.gz |
Hyperlinks together importc like pragmas.
Diffstat (limited to 'doc/nimrodc.txt')
-rw-r--r-- | doc/nimrodc.txt | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/doc/nimrodc.txt b/doc/nimrodc.txt index fea1037da..58c234bcb 100644 --- a/doc/nimrodc.txt +++ b/doc/nimrodc.txt @@ -384,10 +384,11 @@ Example: ImportCpp pragma ---------------- -The ``importcpp`` pragma can be used to import `C++`:idx: methods. The -generated code then uses the C++ method calling syntax: ``obj->method(arg)``. -In addition with the ``header`` and ``emit`` pragmas this allows *sloppy* -interfacing with libraries written in C++: +Similar to the `importc pragma for C <manual.html#importc-pragma>`_, the +``importcpp`` pragma can be used to import `C++`:idx: methods. The generated +code then uses the C++ method calling syntax: ``obj->method(arg)``. In +addition with the ``header`` and ``emit`` pragmas this allows *sloppy* +interfacing with libraries written in C++: .. code-block:: Nimrod # Horrible example of how to interface with a C++ engine ... ;-) @@ -422,11 +423,11 @@ emits C++ code. ImportObjC 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: +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 +allows *sloppy* interfacing with libraries written in Objective C: .. code-block:: Nimrod # horrible example of how to interface with GNUStep ... |