Browse thread
Re: [Caml-list] Runtime overflow and what to do
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Stefano Zacchiroli <zack@c...> |
| Subject: | Re: [Caml-list] Runtime overflow and what to do |
On Mon, Oct 14, 2002 at 07:05:57AM -0700, Tim Freeman wrote: > echo "print_int Sys.word_size;;" | ocaml /dev/fd/0 Cool! Could you explain the trick? If I understood correctly /dev/fd/x is a pointer to /proc/self/fd/x, so the ocaml process try to read the script from /proc/self/fd/0 that is its standard input i.e. the output of the echo command. But why the standard ocaml toplevel message wont be printed? TIA, Cheers. -- Stefano Zacchiroli - undergraduate student of CS @ Univ. Bologna, Italy zack@cs.unibo.it | ICQ# 33538863 | http://www.cs.unibo.it/~zacchiro "I know you believe you understood what you think I said, but I am not sure you realize that what you heard is not what I meant!" -- G.Romney ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners