Scope modifiers: Difference between revisions

Add Nimrod
(→‎{{header|TXR}}: Explicit -B to show variable bindings.)
(Add Nimrod)
Line 591:
IN (inner scope) = 3.14
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}}==
Anonymous user