13.07.2015 Views

apple-pascal-1.3-manual

apple-pascal-1.3-manual

apple-pascal-1.3-manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

o The procedure and function headings consist of the procedure andfunction definitions without their program blocks. See Chapter 8 forsyntax details.o The j $I} ("include file") Compiler option may not be used in the interfacesection.For an illustration of an interface section, see the sample Program Unitgiven later in this chapter.The Implementation SectionA Program Unit's implementation section contains the blocks correspondingto the procedure and function headings contained in its interface section. Ifthere are any such headings, an implementation section must be written; ifthere are no such headings, it must be omitted. The implementation sectionalso contains declarations and other procedures and functions necessary tosupport these routines. These supporting declarations and routines are"private"; they cannot be accessed from outside the Program Unit.The implementation section immediately follows the last procedure orfunction heading in the interface section. It consists of the wordIMPLEMENTATION followed by declarations:IMPLEMENTATION-----~---labeldeclarationsconstantdeclarationsvariabledeclarationsproceduredeclarationfunctiondeclarationThe label, constant, and variable declarations are written the same way asin a program. Each procedure or function declaration corresponds to aprocedure or function heading in the interface section. It consists of a blockIII-218Chapter 12: Program Units

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!