Difference between revisions of "Uses"
From Lazarus wiki
Jump to navigationJump to searchm |
|||
Line 1: | Line 1: | ||
− | The '''uses''' statement is a [[declaration]] by a [[Pascal]] [[program]] that it will invoke or use certain [[procedure]]s, [[function]]s, [[object]]s, [[const]]ants, [[var]]iables and other items which are defined or declared in the specified [[unit]]. | + | The '''uses''' statement is a [[declaration]] by a [[Pascal]] [[Program|program]] that it will invoke or use certain [[procedure]]s, [[function]]s, [[object]]s, [[const]]ants, [[var]]iables and other items which are defined or declared in the specified [[Unit|unit]]. |
Every pascal program and unit has an automatic implied uses statement of | Every pascal program and unit has an automatic implied uses statement of |
Revision as of 16:42, 10 January 2007
The uses statement is a declaration by a Pascal program that it will invoke or use certain procedures, functions, objects, constants, variables and other items which are defined or declared in the specified unit.
Every pascal program and unit has an automatic implied uses statement of
USES System;
except in the case where a compiler parameter allows a unit to exclude a reference to the System unit. (One example of this would be if one was recompiling the System unit, it would be necessary for it not to invoke itself.)