Cambridge ALGOL 68C: Difference between revisions
Content added Content deleted
m (Hardly a stub.) |
m (→The <code>ENVIRON</code> and <code>USING</code> clauses.: fix typos) |
||
Line 1: | Line 1: | ||
{{implementation|ALGOL 68}} |
{{implementation|ALGOL 68}} |
||
===The <code>ENVIRON</code> and <code>USING</code> clauses.=== |
===The <code>ENVIRON</code> and <code>USING</code> clauses.=== |
||
These clauses are kind of the ''inverse'' of the '''#include''' found in the C |
These clauses are kind of the ''inverse'' of the '''#include''' found in the [[C|C programming language]], or '''import''' found in [[Python]]. The purpose of the <code>ENVIRON</code> mechanism is to allow a program source to be broken into manageable sized pieces. Note that it is only necessary to parse the shared source file once, unlike a '''#include''' found in the C programming language where the include file needs to be parsed for each source file that includes it. |
||
==== Example of <code>ENVIRON</code> clause ==== |
==== Example of <code>ENVIRON</code> clause ==== |
||
A file called ''mylib.a68'': |
A file called ''mylib.a68'': |