Rutgers ALGOL 68: Difference between revisions

m
Added notes on transput
(→‎Building and running under Windows: Added dummy sys/times.h for compilers that don't have one.)
m (Added notes on transput)
Line 20:
print( ( "Hello, World!", newline ) )
'end'</lang>
 
=== Transput ===
 
The restrictions Rutgers Algol68 places on the language and prelude are described in the manual. The following highlights some of the differences that are likely to affect running the RC samples with Rutgers Algol 68.<br>
<br>
Only the standard input and standard ouptut channels are supported. The transput event routines (on logical file end etc.) are not implemented. Formatted transput is not implemented.
<br><br>
There are a number of differences in the formatting of items output by print/write.
<br><br>
The read procedure handles '''char''' and '''string''' items differently to the standard.<br>
read( ( c ) ), where c is a '''char''' item gets the next character from standard input - it c is set to '''repr''' 10 at end of line.
<br>
read( ( s ) ), where s is a '''string''' item does not change the bounds of s, it reads as many characters as are currently contained in s, - so '''string''' s; read( ( s, newline ) ) won't read anything into s as its bounds will be 1:0 at that point.
 
=== Building and running under Windows ===
3,021

edits