Category:ALGOL 68-rows: Difference between revisions

From Rosetta Code
Content added Content deleted
No edit summary
m (Add link to the Algol 68 page)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{library}}
{{library}}


ALGOL 68-rows is a set of array related routines and operators for use in Algol 68 programs (arrays are generally called rows in Algol 68).
'''ALGOL 68-rows''' is a set of array related routines and operators for use in [[ALGOL 68]] programs (arrays are generally called rows in Algol 68).


To use this in a program, copy the source code from the [https://rosettacode.org/wiki/Category_Talk:ALGOL_68-rows Talk page] to a text file called rows.incl.a68, putting it in the same directory as the importing program.
To use this in a program, copy the source code from the [https://rosettacode.org/wiki/Category_Talk:ALGOL_68-rows Talk page] to a text file called rows.incl.a68, putting it in the same directory as the importing program.
Line 8: Line 8:
If you are using ALGOL_68G or another compiler/interpreter that supports the read pragmatic comment, then the program can be run as usual.
If you are using ALGOL_68G or another compiler/interpreter that supports the read pragmatic comment, then the program can be run as usual.
For other compilers, the ALGOL 68 pre-processor in Compiler/Simple file inclusion pre processor can be used (see the instructions on that page).
For other compilers, the ALGOL 68 pre-processor in Compiler/Simple file inclusion pre processor can be used (see the instructions on that page).

<br>
'''Note''': with ALGOL 68G version 3, the default has changed to --warnings (before it was --nowarnings) so the code here will probably generate warnings about unused operators and procedures.

Latest revision as of 19:42, 30 January 2022

Library
This is an example of a library. You may see a list of other libraries used on Rosetta Code at Category:Solutions by Library.

ALGOL 68-rows is a set of array related routines and operators for use in ALGOL 68 programs (arrays are generally called rows in Algol 68).

To use this in a program, copy the source code from the Talk page to a text file called rows.incl.a68, putting it in the same directory as the importing program. Then add PR read "rows.incl.a68" PR to the source of the program.

If you are using ALGOL_68G or another compiler/interpreter that supports the read pragmatic comment, then the program can be run as usual. For other compilers, the ALGOL 68 pre-processor in Compiler/Simple file inclusion pre processor can be used (see the instructions on that page).


Note: with ALGOL 68G version 3, the default has changed to --warnings (before it was --nowarnings) so the code here will probably generate warnings about unused operators and procedures.