Scope modifiers: Difference between revisions

Content added Content deleted
(Add Nimrod)
(Nimrod -> Nim)
Line 592: Line 592:
OUT was destroyed</pre>
OUT was destroyed</pre>


=={{header|Nimrod}}==
=={{header|Nim}}==
Identifiers annotated with a <code>*</code> are accessible from other modules
Identifiers annotated with a <code>*</code> are accessible from other modules
<lang nimrod>proc foo = echo "foo" # hidden
<lang nim>proc foo = echo "foo" # hidden
proc bar* = echo "bar" # acessible
proc bar* = echo "bar" # acessible