Download Language Reference Manual

Transcript
Table 10–9 Attributes on Data Items
Data Item
Class
Alignment
Variable
Formal
Parameter
Pointer
Base
Type
Component1
Function
Result
Various
Items2
Yes3
Yes4
Yes4
Yes5
Yes
No
No
No
No
No
No
No
Yes
No
No
No
Allocation
Yes
Hidden
Yes
6
7
Key
No
No
No
Yes
No
No
List
No
Yes8
No
No
No
No
Parameter
passing
No
Yes
9
No
No
No
No
Pos
No
No
No
Yes7
No
No
Read-only
Yes
Yes
Yes
No
No
Yes
6
10
11
Size
Yes
Yes
Yes
Yes
No
Truncate
No
Yes
No
No
No
No
Unsafe6
Yes
Yes9
Yes
Yes
Yes
Yes
No
No
No
No
No
Value
Yes
6
12
Yes
Visibility
Yes
No
No
No
No
No
Volatile
Yes
Yes
Yes
Yes
Yes
No
Write-only
Yes
Yes
Yes
Yes
No
No
1
Component of a record, array, VARYING OF CHAR string, or file (includes conformant parameters).
2
Index of an array, tag field of a variant record (when no tag identifier is present), base type of a set, formal
discriminant.
3 Variables of nonstatic types must be at least byte aligned.
4
5
UNALIGNED not allowed.
Not allowed on components of files or VARYING OF CHAR strings.
6
Not allowed on variables of nonstatic types.
7
Allowed only on record fields (including the tag field of a variant record).
8
Procedure parameters and conformant parameters are allowed only on EXTERNAL routines.
9
Not allowed on conformant VARYING parameters; not allowed on schematic parameters.
10
Not allowed on conformant parameters; not allowed on schematic parameters.
11
Not allowed on components of files or VARYING OF CHAR strings, or on structured types with file
components.
12
Not allowed on variables larger than INTEGER or structured variables.
Attributes 10–57