examples/io/chout.ck
raw| 1 | // 'chout' is chuck out, pronounced "shout" |
| 2 | // 'cherr' is chuck err, pronounced "Cher" |
| 3 | |
| 4 | // output to console on stdout |
| 5 | chout <= 1 <= " foo " <= 5.5 <= IO.newline(); |
| 6 | |
| 7 | // output to console on stderr |
| 8 | cherr <= 1 <= " bar " <= 5.5 <= IO.newline(); |
| 9 | |
| 10 | // 'chout' is buffered; use chout.flush() to output immediately |
| 11 | // 'cherr' prints immediately, flush() or no flush() |