caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Xavier Leroy <xavier.leroy@inria.fr>
To: Vincent Foley <vinfoley@iquebec.com>
Cc: OCaml Mailing list <caml-list@inria.fr>
Subject: Re: [Caml-list] Readline support in the toplevel loop
Date: Wed, 29 May 2002 11:41:07 +0200	[thread overview]
Message-ID: <20020529114107.A2893@pauillac.inria.fr> (raw)
In-Reply-To: <20020529011820.GA2876@vincent>; from vinfoley@iquebec.com on Tue, May 28, 2002 at 09:18:20PM -0400

> 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


  parent reply	other threads:[~2002-05-29  9:41 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-29  1:18 Vincent Foley
2002-05-29  2:30 ` Daniel de Rauglaudre
2002-05-29  2:45   ` Vincent Foley
2002-05-29  5:47   ` Oleg
2002-05-29  8:14     ` Daniel de Rauglaudre
2002-05-29  9:41 ` Xavier Leroy [this message]
2002-05-29 10:19   ` Daniel de Rauglaudre
2002-05-29 11:16     ` sebastien FURIC
2002-05-31 11:44     ` Sven Luther
2002-05-31 15:06       ` Daniel de Rauglaudre
2002-06-04 11:26         ` Sven Luther
2002-05-31 21:26       ` Oleg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020529114107.A2893@pauillac.inria.fr \
    --to=xavier.leroy@inria.fr \
    --cc=caml-list@inria.fr \
    --cc=vinfoley@iquebec.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).