Skip to content

Commit 2abb1ce

Browse files
committed
fix(array_handling.md): edit referers to Arrays1/Arrays2
The original document refers to two different previous instances arrays were described; not knowing how to link to a specific section across to a different Markdown file, referers were intentionally set as place holders only. This commit attempts to correct the situation; if working, a lint of the file still is required. Signed-off-by: Norwid Behrnd <[email protected]>
1 parent cc63747 commit 2abb1ce

File tree

1 file changed

+17
-29
lines changed

1 file changed

+17
-29
lines changed

source/learn/f95_features/array_handling.md

Lines changed: 17 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ Array handling is included in Fortran for two main reasons:
1010

1111
At the same time, major extensions of the functionality in this area
1212
have been added. We have already met whole arrays above
13-
<a href="#Arrays" class="wikilink" title="#Arrays 1">#Arrays 1</a> and
14-
here
15-
<a href="#Arrays_2" class="wikilink" title="#Arrays 2">#Arrays 2</a> -
16-
now we develop the theme.
13+
(see corresponding sections in
14+
[Language elements](language_elements.md#arrays)
15+
and
16+
[Expressions and assignments](expressions_and_assignments.md#arrays))
17+
and continue to develop the theme.
1718

1819
## Zero-sized arrays
1920

@@ -52,7 +53,7 @@ call sub(a)
5253
the corresponding dummy argument specification defines only the type and
5354
rank of the array, not its shape. This information has to be made
5455
available by an explicit interface, often using an interface block (see
55-
[Interface blocks](interface_blocks)).
56+
[Interface blocks](program_units_and_procedures.md#interface-blocks)).
5657
Thus we write just
5758

5859
```f90
@@ -168,10 +169,12 @@ end subroutine swap
168169
```
169170

170171
The dummy arguments cannot be used in specification expressions (see
171-
<a href="#Specification_expressions" class="wikilink"
172-
title="above">above</a>) except as arguments to certain intrinsic
173-
functions (`bit_size`, `kind`, `len`, and the numeric inquiry ones, (see
174-
<a href="#Intrinsic_data_types" class="wikilink" title="below">below</a>).
172+
[Specification expressions](language_elements.md#specification-expressions)
173+
mentioned earlier in Language elements)
174+
except as arguments to certain intrinsic
175+
functions (`bit_size`, `kind`, `len`, and the numeric inquiry ones (see
176+
[Intrinsic data types](language_elements.md#intrinsic-data-types),
177+
and below).
175178

176179
## `where`
177180

@@ -289,26 +292,11 @@ we can declare an array of that type:
289292
type(fun_del), dimension(10, 20) :: tar
290293
```
291294

292-
and a reference like
293-
294-
```f90
295-
tar(n, 2)
296-
```
297-
298-
is an element (a scalar!) of type `fun_del`, but
299-
300-
```f90
301-
tar(n, 2)%du
302-
```
303-
304-
is an array of type `real`, and
305-
306-
```f90
307-
tar(n, 2)%du(2)
308-
```
309-
310-
is an element of it. The basic rule to remember is that an array element
311-
always has a subscript or subscripts qualifying at least the last name.
295+
A reference like `tar(n, 2)` is an element (a scalar!) of type
296+
`fun_del`, but `tar(n, 2)%du` is an array of type `real`, and
297+
`tar(n, 2)%du(2)` is an element of it. The basic rule to remember
298+
is that an array element always has a subscript or subscripts
299+
qualifying at least the last name.
312300

313301
## Array subobjects (sections)
314302

0 commit comments

Comments
 (0)