Originale-mail to me for new edition

 

The initialization section

 

The initialization section is optional. It begins with the reserved word initialization and continues until the beginning of the finalization section or, if there is no finalization section, until the end of the unit. The initialization section contains statements that are executed, in the order in which they appear, on program start-up. So, for example, if you have defined data structures that need to be initialized, you can do this in the initialization section.

The initialization sections of units used by a client are executed in the order in which the units appear in the client’s uses clause.

 

Topic groups

Programs and units: Overview

Program structure and syntax: Overview

The program heading

The program uses clause

The block

Unit structure and syntax: Overview

The unit heading

The interface section

The implementation section

The initialization section

The finalization section

Unit references and the uses clause

The syntax of a uses clause

Multiple and indirect unit references

Circular unit references

 

See also

The finalization section

The implementation section

The interface section

The unit heading

Unit structure and syntax: Overview

 

 

译文

 

初始化节

 

初始化节是可选的,它以保留字initialization开始一直到结束节开始(如果单元中有结束节)或单元结束(如果单元中没有结束节)。初始化节含有用于执行的语句,当程序开始执行时,将根据初始化节出现的顺序依次执行其语句。例如,如果需要对某些数据结构进行初始化,那么可以将初始化语句置于初始化节。

单元初始化节执行的顺序由使用该单元的单元或程序中决定,即该单元在其客户模块的uses子句中单元列表中的位置决定。

 

主题组

程序和单元:概述

程序结构和语法:概述

程序首部

程序的uses子句

单元结构和语法:概述

单元首部

接口节

实现节

初始化节

结束节

单元引用和uses子句

uses子句的语法

多重和间接单元应用

循环单元引用

 

相关主题

结束节

实现节

接口节

单元首部

单元结构和语法:概述

 

编者注

初始化节中的语句在程序运行开始时执行一次,程序运行中将不再执行。运行中,其它语句也无法将执行点跳转到初始化节中。