Scope/Function names and labels: Difference between revisions

(→‎{{header|Phix}}: added a note re classes)
Line 711:
=={{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.<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, but if an instance of a private class is handed over, any recipient has full access to anything declared as public within it (but naturally they won't have the ability to create an instance of a private class).
 
=={{header|PL/I}}==
7,795

edits