If you define a variable (identifier) inside the interface section the variable will be "visible" to all units using this unit. If you define an identifier inside the implementation section, the identifier is hidden to the outer world.
When designing the overall structure of your application it is essential to have an understanding of the scope (visibility) of identifiers (routines, variables, types) defined inside the unit:
* Everything defined in the interface section will be available to all other units using this unit
* Everything defined in the implementation section is available only within the unit
Interface and Implementation section available scope.
最新推荐文章于 2024-07-05 11:42:30 发布