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 LAA00967; Wed, 8 Oct 2003 11:30: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 LAA18281 for ; Wed, 8 Oct 2003 11:30:41 +0200 (MET DST) Received: from ns.mccme.ru (ns.mccme.ru [62.117.108.3]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h989Uc115686 for ; Wed, 8 Oct 2003 11:30:40 +0200 (MET DST) Received: from mccme.ru (IDENT:potanin@mccme.ru [62.117.108.7]) by ns.mccme.ru (8.12.9/8.12.9) with SMTP id h989Ns3m027883 for ; Wed, 8 Oct 2003 12:23:54 +0300 Date: Wed, 8 Oct 2003 13:30:19 +0400 (MSD) From: Mike Potanin To: caml-list@inria.fr Subject: [Caml-list] Toplevel with line editor. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Loop: caml-list@inria.fr X-Spam: no; 0.00; potanin:01 potanin:01 mccme:01 stdout:01 stdin:01 toploop:01 getline:01 ocaml:01 ocaml:01 caml:01 imho:01 flush:01 toplevel:01 toplevel:01 distinguish:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk IMHO, to run ocaml toplevel with pipes (like ocaml2) is not a good idea. This program can't distinguish between toplevel output and user script output. For example: print_string "xxx# "; flush stdout ; ignore (input_line stdin);; Standard toplevel can not hook line input (Toploop.refill_lexbuf). I made patch to fix this problem and also I made a simple toplevel which uses getline lib (based on ocaml2 code). http://wtk.ru/pm/fp/caml/iocaml.tgz ------------------- 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