nld Utility
nld and noft Manual — 520384-003
2- 30
Local and Shared Symbols
Local and Shared Symbols
A local symbol is known only within a single compilation unit. A shared symbol is
known by all compilation units that are linked together.
A local symbol is distinct from any other symbol of the same name that appears in
other compilation units. Because a shared symbol is known by all compilation units that
are linked together, all compilation units refer to the same symbol at run time.
The pTAL compiler has various rules for grouping data items into blocks. It is possible
to declare separate data items in pTAL, outside any explicit data blocks, and have
them remain individual data items across separate compilation units. (This behavior is
identical to that in C and C++.) The pTAL compiler can also group data items together
into a single data block named
_GLOBAL
. The pTAL compiler can also put the prefix “
$
”
on the name of a data block. See the
pTAL Reference Manual
for details on declaring
and sharing data blocks in pTAL.
Table 2-6. Local and Shared Symbols by Language
Language
Local Symbols: Names of ...
Shared Symbols: Names of ...
C
C++
Static data items
Static functions
Data items declared outside functions
All other functions
COBOL
Data records (level 01 data items) that
are not declared external
Subordinate data items (levels 02-
nn
)
Programs nested within other
programs
External data items
External file connectors
pTAL
Private data blocks whose NAME
declarations are unique
Subprocedures
Names of data block members*
All other data blocks
* For example, if a data block is named B and it contains an integer named I, then B is the only name that
nld
considers for separate compilation rules. It is possible that B will be confused with a data item named B in C
compilation units.
Содержание nld
Страница 12: ...Contents nld and noft Manual 520384 003 x ...
Страница 16: ...What s New in This Manual nld and noft Manual 520384 003 xiv Miscellaneous ...
Страница 22: ...About This Manual nld and noft Manual 520384 003 xx Change Bar Notation ...
Страница 28: ...Introduction to the Utilities nld and noft Manual 520384 003 1 6 strip ...
Страница 60: ...nld Utility nld and noft Manual 520384 003 2 32 Declaration and Definition ...
Страница 78: ...nld Options nld and noft Manual 520384 003 3 18 y ...
Страница 90: ...noft Utility nld and noft Manual 520384 003 4 12 Debugging With noft ...
Страница 150: ...strip Utility nld and noft Manual 520384 003 7 2 ...
Страница 160: ...Converting From Binder to nld and noft nld and noft Manual 520384 003 9 8 Comparing Binder Commands to noft Options ...
Страница 242: ...nld Diagnostic Messages nld and noft Manual 520384 003 10 82 Informational Messages ...
Страница 278: ...noft Diagnostic Messages nld and noft Manual 520384 003 11 36 Syntax Errors ...
Страница 286: ...ar Diagnostic Messages nld and noft Manual 520384 003 12 8 ...
Страница 314: ...Sample nld and noft Session nld and noft Manual 520384 003 A 28 LISTSRLFIXUPS ...
Страница 330: ...Index nld and noft Manual 520384 003 Index 10 Special Characters ...