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 LAA03339; Wed, 29 May 2002 11:41:09 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA03368 for ; Wed, 29 May 2002 11:41:08 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g4T9f7n22381; Wed, 29 May 2002 11:41:07 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA03285; Wed, 29 May 2002 11:41:07 +0200 (MET DST) Date: Wed, 29 May 2002 11:41:07 +0200 From: Xavier Leroy To: Vincent Foley Cc: OCaml Mailing list Subject: Re: [Caml-list] Readline support in the toplevel loop Message-ID: <20020529114107.A2893@pauillac.inria.fr> References: <20020529011820.GA2876@vincent> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20020529011820.GA2876@vincent>; from vinfoley@iquebec.com on Tue, May 28, 2002 at 09:18:20PM -0400 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > Is it possible to have readline support in the toplevel loop of O'Caml > so that you can press the up key to recall something you already wrote, > and go back to edit other things. Is it possible? I considered it, but there are several issues. One of them is that readline is GPL, thus linking it with the Caml toplevel could cause license incompatibility issues. Another issue is portability to platfroms that do not have readline: the line reading and prompt handling logic is quite different between readline and just reading from standard input. All in all, I believe using an external line editor such as Ledit, CLE, FEP, ILE, etc, is a lot simpler and more flexible. - Xavier Leroy ------------------- 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