Created
February 6, 2018 08:52
-
-
Save anonymous/c62d224708f31e32ef6eafb54b396172 to your computer and use it in GitHub Desktop.
Snippet from https://play.nim-lang.org
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var x = 1 | |
| proc incX() = | |
| x.inc() | |
| proc incX2(index: var int) = | |
| index.inc() | |
| incX() | |
| x.incX2 | |
| echo x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment