STATE

Property

Value

Kind

Connection library

Type

Mnemonic

Read

Anytime

Write

Never

Default

Not applicable

Explanation

The STATE library attribute returns the logical state of one of the connections of a connection library.

When a program reads the STATE attribute, the program must specify a connection index unless the connection library was declared with the SINGLE keyword. For example, the following ALGOL statement reads the STATE attribute for connection 3 of connection library CLIB:

IF LIBRARY(CLIB[3]).STATE = VALUE(NOTLINKED) THEN...

The following are the possible STATE values and their meanings:

Mnemonic Value

Integer Value

Meaning

NOTLINKED

1

The connection is not linked.

LINKING

2

Linkage is initiated but is not complete. The APPROVAL procedure, if any, is called. However, no procedure linkages are established yet.

LINKED

3

The connection is now fully linked.

DELINKING

4

The connection is in the process of being delinked.

The current state of a connection is also automatically passed to the CHANGE procedure, if any. Refer to CHANGE earlier in this section.