Changes by: Aleksey Nogin (nogin at metaprl.org)
Date: 2007-06-25 14:57:03 -0700 (Mon, 25 Jun 2007)
Revision: 11119
Log message:
- The "read(channel, amount)" built-in function should raise an exception on
EOF (this is what the documentation promises, but the implementation used to
simply return an empty string).
- Implementated an "input-line(channel)" built-in function.
- Added two above functions to the InputChannel pervasives object - as
o.read(amount) and o.readln()
Changes | Path |
+14 -0 | omake-branches/0.9.8.4/lib/Pervasives.om |
+25 -8 | omake-branches/0.9.8.4/src/builtin/omake_builtin_io.ml |