Improves tut2.txt with more hyperlinks.

This commit is contained in:
Grzegorz Adam Hankiewicz 2014-08-05 16:44:27 +02:00
commit 8aa0be82d4

View file

@ -23,11 +23,13 @@ features.**
Pragmas Pragmas
======= =======
Pragmas are Nimrod's method to give the compiler additional information/ Pragmas are Nimrod's method to give the compiler additional information/
commands without introducing a massive number of new keywords. Pragmas are commands without introducing a massive number of new keywords. Pragmas are
enclosed in the special ``{.`` and ``.}`` curly dot brackets. This tutorial enclosed in the special ``{.`` and ``.}`` curly dot brackets. This tutorial
does not cover pragmas. See the `manual <manual.html>`_ does not cover pragmas. See the `manual <manual.html#pragmas>`_ or `user guide
or `user guide <nimrodc.html>`_ for a description of the available pragmas. <nimrodc.html#additional-features>`_ for a description of the available
pragmas.
Object Oriented Programming 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). is not executed (if an exception occurs).
If you need to *access* the actual exception object or message inside an If you need to *access* the actual exception object or message inside an
``except`` branch you can use the getCurrentException() and ``except`` branch you can use the `getCurrentException()
getCurrentExceptionMsg() procs from the `system <system.html>`_ module. <system.html#getCurrentException>`_ and `getCurrentExceptionMsg()
Example: <system.html#getCurrentExceptionMsg>`_ procs from the `system <system.html>`_
module. Example:
.. code-block:: nimrod .. code-block:: nimrod
try: try:
@ -663,8 +666,8 @@ statement:
declareInNewScope(b, int) declareInNewScope(b, int)
b = 42 # does not work, `b` is unknown b = 42 # does not work, `b` is unknown
(The manual explains why the ``immediate`` pragma is needed for these (The `manual explains <manual.html#ordinary-vs-immediate-templates>`_ why the
templates.) ``immediate`` pragma is needed for these templates.)
If there is a ``stmt`` parameter it should be the last in the template 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 declaration. The reason is that statements can be passed to a template