Rutgers ALGOL 68: Difference between revisions
Content added Content deleted
m (→Transput) |
|||
Line 32: | Line 32: | ||
<br><br> |
<br><br> |
||
The read procedure handles '''char''' and '''string''' items differently to the standard.<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 - |
read( ( c ) ), where c is a '''char''' item gets the next character from standard input - c is set to '''repr''' 10 at end of line. |
||
<br> |
<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. |
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. |