From: oliver <oliver@first.in-berlin.de>
To: "Jérémie Dimino" <jeremie@dimino.org>
Cc: "Dominique Martinet" <dominique.martinet@student.ecp.fr>,
"Çagdas Bozman" <cagdas.bozman@ocamlpro.com>,
caml-list@inria.fr
Subject: Re: [Caml-list] try ocaml website
Date: Fri, 23 Dec 2011 22:35:05 +0100 [thread overview]
Message-ID: <20111223213505.GD5565@siouxsie> (raw)
In-Reply-To: <1324668549.22984.93.camel@aurora>
On Fri, Dec 23, 2011 at 08:29:09PM +0100, Jérémie Dimino wrote:
> Le vendredi 23 décembre 2011 à 20:10 +0100, Dominique Martinet a écrit :
> > Yes, I've seen that - what I mean isn't clearing the view, but really
> > reseting the variables and whatever is defined.
> > Maybe there actually is something in the standard toplevel, but I don't
> > think I've ever heard about it :)
>
> You can do that:
>
> # let env = !Toploop.toplevel_env;;
> val env : Env.t = <abstr>
> # let x = 1;;
> val x : int = 1
> # Toploop.toplevel_env := env;;
> - : unit = ()
> # x;;
> Characters 0-1:
> Error: Unbound value x
[...]
Oh, cool. :-)
Ciao,
Oliver
next prev parent reply other threads:[~2011-12-23 21:35 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-23 18:00 Fabrice Le Fessant
2011-12-23 18:40 ` Dominique Martinet
2011-12-23 18:49 ` Çagdas Bozman
2011-12-23 19:10 ` Dominique Martinet
2011-12-23 19:29 ` Jérémie Dimino
2011-12-23 19:39 ` Dominique Martinet
2011-12-23 21:35 ` oliver [this message]
2011-12-23 19:36 ` Adrien
2011-12-26 8:09 ` Gabriel Scherer
2011-12-27 20:23 ` Fabrice Le Fessant
2011-12-23 18:40 ` oliver
2011-12-24 8:51 ` Stéphane Glondu
2011-12-24 10:16 ` oliver
2011-12-24 10:31 ` Dominique Martinet
2011-12-23 18:54 ` Török Edwin
2011-12-23 21:27 ` oliver
2011-12-23 18:56 ` Ashish Agarwal
2011-12-23 19:15 ` Philippe Strauss
2011-12-23 21:14 ` Norman Hardy
2011-12-23 21:18 ` William Le Ferrand
2011-12-23 21:32 ` oliver
2011-12-26 8:50 ` Mihamina Rakotomandimby
2011-12-26 9:05 ` Esther Baruk
2012-01-03 22:12 ` Philippe Wang
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=20111223213505.GD5565@siouxsie \
--to=oliver@first.in-berlin.de \
--cc=cagdas.bozman@ocamlpro.com \
--cc=caml-list@inria.fr \
--cc=dominique.martinet@student.ecp.fr \
--cc=jeremie@dimino.org \
/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