Category:ALGOL 68-primes: Difference between revisions

m
Added note about Algol 68G warnings
(Created a page for ALGOL_68-primes - taking a leaf out of Wren's book)
 
m (Added note about Algol 68G warnings)
 
(2 intermediate revisions by the same user not shown)
Line 1:
{{library}}
 
'''ALGOL 68-Primes''' is a set of prime related routines and operators for use in [https://rosettacode.org/wiki/Category_ALGOL_68 Algol[ALGOL 68]] programs.
 
To use this in a program, copy the source code from the [https://rosettacode.org/wiki/Category_talkCategory_Talk:ALGOL_68-primes talkTalk page] to a text file called ''primes.incl.a68'', putting it in the same directory as the importing program.
<br>Then add <code>PR read "primes.incl.a68" PR</code> 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.
<br>For other compilers, the ALGOL 68 pre-processor in [https://www.rosettacode.org/wiki/Compiler/Simple_file_inclusion_pre_processor 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.
3,021

edits