Adds using statement to the one and only true index.

This commit is contained in:
Grzegorz Adam Hankiewicz 2013-12-30 12:18:46 +01:00
commit db7d0e6a66

View file

@ -2206,12 +2206,12 @@ Instead of:
Using statement Using statement
--------------- ---------------
The using statement provides syntactic convenience for procs that heavily use a The `using statement`:idx: provides syntactic convenience for procs that
single contextual parameter. When applied to a variable or a constant, it will heavily use a single contextual parameter. When applied to a variable or a
instruct Nimrod to automatically consider the used symbol as a hidden leading constant, it will instruct Nimrod to automatically consider the used symbol as
parameter for any procedure calls, following the using statement in the current a hidden leading parameter for any procedure calls, following the using
scope. Thus, it behaves much like the hidden `this` parameter available in some statement in the current scope. Thus, it behaves much like the hidden `this`
object-oriented programming languages. parameter available in some object-oriented programming languages.
.. code-block:: nimrod .. code-block:: nimrod