Scope modifiers: Difference between revisions
Content added Content deleted
(→{{header|TXR}}: Explicit -B to show variable bindings.) |
(Add Nimrod) |
||
Line 591: | Line 591: | ||
IN (inner scope) = 3.14 |
IN (inner scope) = 3.14 |
||
OUT was destroyed</pre> |
OUT was destroyed</pre> |
||
=={{header|Nimrod}}== |
|||
Identifiers annotated with a <code>*</code> are accessible from other modules |
|||
<lang nimrod>proc foo = echo "foo" # hidden |
|||
proc bar* = echo "bar" # acessible |
|||
type MyObject = object |
|||
name*: string # accessible |
|||
secretAge: int # hidden</lang> |
|||
=={{header|PARI/GP}}== |
=={{header|PARI/GP}}== |