Content deleted Content added
Be..anyone (talk | contribs) m →Reversing a string: bypass redirect |
This information is useless here. Pascal also has such a result variable. |
||
Line 55:
echo "Reversed: ", reverse(str1)
</syntaxhighlight>
This example shows many of Nim's features, one of the most exotic ones is the implicit <code>result</code> variable: every procedure in Nim with a non-void return type has an implicit result variable that represents the value that will be returned.
=== Metaprogramming ===
|