Skip to main content

1978 | OriginalPaper | Buchkapitel

Arrays and Iterations

verfasst von : Brian Meek

Erschienen in: Fortran, PL/I and the Algols

Verlag: Macmillan Education UK

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

In Algol 68 arrays are called ‘multiple values’. The most straightforward way of creating a multiple value is to use a ‘row display’. An example of a row display is <m:math display='block'> <m:mrow> <m:mo stretchy='false'>(</m:mo><m:mn>3</m:mn><m:mo>,</m:mo><m:mn>7</m:mn><m:mo>,</m:mo><m:mn>0</m:mn><m:mo>,</m:mo><m:mn>24</m:mn><m:mo>,</m:mo><m:mn>6</m:mn><m:mo>,</m:mo><m:mn>12</m:mn><m:mo stretchy='false'>)</m:mo></m:mrow> </m:math>]]</EquationSource><EquationSource Format="TEX"><![CDATA[$$\[(3,7,0,24,6,12)\]$$ which is a collateral clause all of whose components are of mode int. Collateral clauses have various uses, but when treated as a row display the mode of the above clause is ‘row of int’, otherwise written [ ] int. This, then, introduces ‘rowing’ as a means of developing further modes from the primitive modes. It should be noted that the term ‘rowing’ is applied both to the explicit process of creating a new mode by making a ‘row’, that is, array, of another mode, and to the coercion which in certain circumstances performs the equivalent mode conversion automatically. For the moment it is the explicit creation of rowed modes which we are considering; the coercion equivalent to it will appear later.

Metadaten
Titel
Arrays and Iterations
verfasst von
Brian Meek
Copyright-Jahr
1978
Verlag
Macmillan Education UK
DOI
https://doi.org/10.1007/978-1-349-04052-0_18