diff options
author | Grzegorz Adam Hankiewicz <gradha@imap.cc> | 2014-08-05 16:44:27 +0200 |
---|---|---|
committer | Grzegorz Adam Hankiewicz <gradha@imap.cc> | 2014-08-05 16:44:27 +0200 |
commit | 8aa0be82d471c3ec24b8e798ea65748c67b0c5ce (patch) | |
tree | c3cd7a95a2d92af2eefb03342b3d9a4a37ffae5d | |
parent | 688db0f70a08960e4785cc3807a3b97f706f877d (diff) | |
download | Nim-8aa0be82d471c3ec24b8e798ea65748c67b0c5ce.tar.gz |
Improves tut2.txt with more hyperlinks.
-rw-r--r-- | doc/tut2.txt | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/doc/tut2.txt b/doc/tut2.txt index 1e23618e0..295d2e046 100644 --- a/doc/tut2.txt +++ b/doc/tut2.txt @@ -23,11 +23,13 @@ features.** Pragmas ======= + Pragmas are Nimrod's method to give the compiler additional information/ -commands without introducing a massive number of new keywords. Pragmas are -enclosed in the special ``{.`` and ``.}`` curly dot brackets. This tutorial -does not cover pragmas. See the `manual <manual.html>`_ -or `user guide <nimrodc.html>`_ for a description of the available pragmas. +commands without introducing a massive number of new keywords. Pragmas are +enclosed in the special ``{.`` and ``.}`` curly dot brackets. This tutorial +does not cover pragmas. See the `manual <manual.html#pragmas>`_ or `user guide +<nimrodc.html#additional-features>`_ for a description of the available +pragmas. Object Oriented Programming @@ -421,9 +423,10 @@ the rest of the procedure - that is not within a ``finally`` clause - is not executed (if an exception occurs). If you need to *access* the actual exception object or message inside an -``except`` branch you can use the getCurrentException() and -getCurrentExceptionMsg() procs from the `system <system.html>`_ module. -Example: +``except`` branch you can use the `getCurrentException() +<system.html#getCurrentException>`_ and `getCurrentExceptionMsg() +<system.html#getCurrentExceptionMsg>`_ procs from the `system <system.html>`_ +module. Example: .. code-block:: nimrod try: @@ -663,8 +666,8 @@ statement: declareInNewScope(b, int) b = 42 # does not work, `b` is unknown -(The manual explains why the ``immediate`` pragma is needed for these -templates.) +(The `manual explains <manual.html#ordinary-vs-immediate-templates>`_ why the +``immediate`` pragma is needed for these templates.) If there is a ``stmt`` parameter it should be the last in the template declaration. The reason is that statements can be passed to a template |