Matching Data Types

ALGOL and NEWP provide the ability to export and import data objects, as discussed earlier in this section under Exported Data in Server Libraries, Importing Data to Client Programs, and Exported and Imported Data in Connection Libraries.

ALGOL Capabilities

ALGOL libraries can export or import simple variables of the following data types:

  • Simple variables of type BOOLEAN, COMPLEX, DOUBLE, EVENT, INTEGER, and REAL.

  • Arrays of any of these data types, as well as ASCII, EBCDIC, and HEX.

Note that if an exported array is multidimensional, it must have an access mode of READWRITE.

ALGOL cannot export VALUE arrays, but does permit array references to be used to export an array that is assigned the VALUE array.

NEWP Capabilities

Currently, the data exporting and importing capabilities of NEWP are much more restricted than those of ALGOL. In NEWP, the full ability to both import and export data, optionally specifying an access mode, exists only for events and event arrays. NEWP can export other types of arrays, but cannot import them and cannot specify an access mode for them.

FORTRAN77 Capabilities

This section does not discuss the exporting of data in FORTRAN77. Instead, refer to the FORTRAN77 Programming Reference Manual.

Matching Data Names

The names of the exported and imported data objects must match, unless an ACTUALNAME assignment is used to establish an alias used for matching, as discussed under Matching the Object Name earlier in this section.

Matching Data Types

The type of data that is imported must match the exported data type exactly, except that an INTEGER export can match a REAL import if the access mode is read-only.