Scope modifiers: Difference between revisions

Content deleted Content added
→‎{{header|Tcl}}: Describe Tcl's command scoping
add E description
Line 45: Line 45:
</lang>
</lang>
This package can be then used only by private siblings of the same parent P.
This package can be then used only by private siblings of the same parent P.

=={{header|E}}==

E has no scope modifiers; all variables (including function definitions) are lexical. When more than one file is involved, all import/export of definitions is handled by explicit return values, parameters, or reified environments.

=={{header|Java}}==
=={{header|Java}}==
<lang java>public //any class may access this member directly
<lang java>public //any class may access this member directly