Difference between revisions of "Unit/es"

From Lazarus wiki
Jump to navigationJump to search
(New page: {{Unit}} A '''unit''' is a source code file (or the binary compiled from that file) which was written using the Pascal programming language, and th...)
 
Line 1: Line 1:
 
{{Unit}}
 
{{Unit}}
  
A '''unit''' is a [[Source code|source code]] file (or the [[Binary|binary]] compiled from that [[File|file]]) which was written using the [[Pascal]] programming language, and that is designed to be a single module in an [[Application|application]] or an [[Object module|object module]].   
+
Una '''unidad''' es un archivo con [[Source code|código fuente]] (o el compilado [[Binary|binario]] de ese [[File|archivo]]) que ha sido escrito usando el lenguaje de programación [[Pascal]], y que ha sido diseñado para ser un modulo simple en una [[Application|aplicación]] o un [[Object module|módulo objeto]].   
  
 
A unit may be used where certain functionality is to be provided to an application program or to other units, and allowing code that performs that functionality to be created once and used in many places.  This can reduce the possibility of error and increase the possibility of code reuse.
 
A unit may be used where certain functionality is to be provided to an application program or to other units, and allowing code that performs that functionality to be created once and used in many places.  This can reduce the possibility of error and increase the possibility of code reuse.

Revision as of 23:22, 28 July 2008

Deutsch (de) English (en) español (es) suomi (fi) français (fr) português (pt) русский (ru)

Una unidad es un archivo con código fuente (o el compilado binario de ese archivo) que ha sido escrito usando el lenguaje de programación Pascal, y que ha sido diseñado para ser un modulo simple en una aplicación o un módulo objeto.

A unit may be used where certain functionality is to be provided to an application program or to other units, and allowing code that performs that functionality to be created once and used in many places. This can reduce the possibility of error and increase the possibility of code reuse.

A unit may be used where a program author wishes to provide certain functionality for use in a Pascal program but does not wish to provide the source code that performs that functionality.

Units were also used on older versions of Pascal when it was nececessary on computers with limited resources to be able to load routines as needed rather than keeping every routine of the executable program in memory all of the time.

A unit that needs to access procedures and data types in another unit must specify those units it needs to access in a Uses statement but linking is done without the need to write a makefile as in C.

A unit may also be used to declare a series of global constants or variables for use by the entire application, without actually containing any executable code.


Read more