[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
In a program:
program @@fragment foo; |
In a unit:
unit @@fragment Bar3; |
The reserved word `uses' in the import part of a program or unit makes the program or unit import an interface.
The keyword `in' tells GPC to look for the `unit' in the specified file; otherwise the file name is derived from the name of the interface by adding first `.p', then `.pas'.
There must be at most one import part in a program.
In a unit, there can be one import part in the interface part and one in the implementation part.
The imported interface needn't be a UCSD/Borland Pascal unit, it may be an interface exported by an Extended Pascal module as well.
ISO Pascal does not define `uses' and units at all. UCSD and Borland Pascal do, but without the `in' extension. Delphi supports `uses' like described above.
section 9.288 unit, section 9.163 module, section 9.113 import.