string_length_kind¶
How the length of a string is determined.
Declaration¶
Syntax¶
string_length_kind
= AssumedLength
| DeferredLength
| ExpressionLength
| ImplicitLength
Values¶
Value |
Meaning |
|---|---|
|
|
|
|
|
the length is the expression in the |
|
the length follows from the operation that produced the value rather than from a declaration. It is what the result of a StringPhysicalCast must use. |
Return values¶
None. An enumeration value is not evaluated.
Description¶
len and len_kind go together: ExpressionLength requires a len, and the
other three leave it nil.
The string_length_arguments pass turns an AssumedLength dummy of a
procedure without BIND(C) into an ExpressionLength one whose len is the
hidden length argument the actual’s length is passed in (see
Function).