Scope/Function names and labels: Difference between revisions

Content added Content deleted
(Added Wren)
(→‎{{header|Phix}}: added a note re classes)
Line 710: Line 710:


=={{header|Phix}}==
=={{header|Phix}}==
Functions are private (restricted to a single file) by default, or can be made global by prefixing the definition with the global keyword to make it visible everywhere.
Functions are private (restricted to a single file) by default, or can be made global by prefixing the definition with the global keyword to make it visible everywhere.<br>
Functions within classes are either private (can only be called from within the class definition) or public (can be called by anything that manages to get it's grubby little mitts on an instance of it). The containing classes themselves can be private or public as above.


=={{header|PL/I}}==
=={{header|PL/I}}==