From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id RAA31048; Mon, 14 Oct 2002 17:59:44 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA30754 for ; Mon, 14 Oct 2002 17:59:43 +0200 (MET DST) Received: from smtp2.libero.it (smtp2.libero.it [193.70.192.52]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g9EFxhD04827 for ; Mon, 14 Oct 2002 17:59:43 +0200 (MET DST) Received: from dalamar.takhisis.org (62.98.147.134) by smtp2.libero.it (6.5.028) id 3DA310EC00294CCE for caml-list@inria.fr; Mon, 14 Oct 2002 17:59:41 +0200 Received: from lordsoth.takhisis.org (lordsoth.takhisis.org [192.168.1.119]) by dalamar.takhisis.org (8.12.6/8.12.6/Debian-6) with ESMTP id g9EFWNxQ001781 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=FAIL) for ; Mon, 14 Oct 2002 17:32:23 +0200 Received: from lordsoth.takhisis.org (lordsoth.takhisis.org [192.168.1.119]) by lordsoth.takhisis.org (8.12.6/8.12.6/Debian-6) with ESMTP id g9EFWM0X009632 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Mon, 14 Oct 2002 17:32:23 +0200 Received: (from zack@localhost) by lordsoth.takhisis.org (8.12.6/8.12.6/Debian-6) id g9EFWMHg009630 for caml-list@inria.fr; Mon, 14 Oct 2002 17:32:22 +0200 Date: Mon, 14 Oct 2002 17:32:22 +0200 From: Stefano Zacchiroli To: caml-list@inria.fr Subject: Re: [Caml-list] Runtime overflow and what to do Message-ID: <20021014153222.GC9043@cs.unibo.it> Mail-Followup-To: caml-list@inria.fr References: <200210121613.MAA27433@psi-phi.mit.edu> <20021013112815.K13771@pauillac.inria.fr> <4.3.2.7.2.20021013175437.032eb130@mail.d6.com> <20021014184615Q.garrigue@kurims.kyoto-u.ac.jp> <20021014140806.2F0E980DE@lobus.fungible.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021014140806.2F0E980DE@lobus.fungible.com> User-Agent: Mutt/1.4i Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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