From: "Daniel Bünzli" <daniel.buenzli@epfl.ch>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Saving the OCaml interpreter state
Date: Fri, 13 Apr 2007 22:27:42 +0200 [thread overview]
Message-ID: <4A6A4BE3-E1D5-427A-8C7B-E64C86DA6B58@epfl.ch> (raw)
In-Reply-To: <1176493128.22788.101.camel@localhost.localdomain>
Le 13 avr. 07 à 21:38, Gerd Stolpmann a écrit :
> What we don't have is a convenient way to create
> sessions. Maybe we can add that by recording the interactively
> submitted
> definitions, and replaying them later.
You are right, record expressions that were _correctly_ parsed. ledit
falls short of this goal :
> > ledit -h session1 ocaml
> Objective Caml version 3.09.3
>
> # let x = 3;;
> val x : int = 3
> #^D
> > ledit -h session2 ocaml
> Objective Caml version 3.09.3
>
> # #use "session1";;
> val x : int = 3
The problem is when you type malformed expressions, they are also
recorded (ledit cannot know they are malformed) and #using the
session breaks, you need to clean it before.
Your proposal seems a good and reasonable feature wish.
Best,
Daniel
next prev parent reply other threads:[~2007-04-13 20:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-10 22:08 Harrison, John R
2007-04-12 12:27 ` [Caml-list] " Michael Nedzelsky
2007-04-12 15:53 ` Harrison, John R
2007-04-12 18:27 ` Jon Harrop
2007-04-12 23:52 ` Yaron Minsky
2007-04-13 19:07 ` Harrison, John R
2007-04-13 19:38 ` Gerd Stolpmann
2007-04-13 20:27 ` Daniel Bünzli [this message]
2007-04-14 11:59 ` Michael Nedzelsky
2007-04-22 10:00 ` Xavier Leroy
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=4A6A4BE3-E1D5-427A-8C7B-E64C86DA6B58@epfl.ch \
--to=daniel.buenzli@epfl.ch \
--cc=caml-list@yquem.inria.fr \
/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).