From: "Harrison, John R" <johnh@ichips.intel.com>
To: "'Andrzej M. Ostruszka'" <ostruszk@order.if.uj.edu.pl>,
Caml List <caml-list@inria.fr>
Cc: "Harrison, John R" <johnh@ichips.intel.com>
Subject: RE: [Caml-list] Re: Toplevel question ...
Date: Mon, 4 Mar 2002 09:10:16 -0800 [thread overview]
Message-ID: <FD2423AA68A7D511A5A20002A50729E12C1015@orsmsx115.jf.intel.com> (raw)
Tomasz Zielonka writes:
> > Is there some alias in toplevel for the result of last evaluation so one
> > could use it instead of retyping (there's no history completion :() and
> > binding to some name?
I don't think so, but I also wish there were. Some other implementations
of ML automatically bind the result of the previous evaluation to a
special identifier "it", treating an expression "E" as "let it = E". This
is really useful if, like me, you work in the toplevel a lot and often
want to evaluate ad hoc chains of dependent expressions.
Even if the OCaml developers don't want to add this feature to the
default toplevel, it must be very easy to support using Camlp4. Perhaps
Daniel de Rauglaudre or another expert can tell us how?
John.
-------------------
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
next reply other threads:[~2002-03-04 18:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-04 17:10 Harrison, John R [this message]
2002-03-04 18:42 ` Daniel de Rauglaudre
-- strict thread matches above, loose matches on Subject: below --
2002-02-28 15:49 [Caml-list] " Andrzej M. Ostruszka
2002-03-01 9:36 ` Tomasz Zielonka
2002-03-02 10:25 ` [Caml-list] " Andrzej M. Ostruszka
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=FD2423AA68A7D511A5A20002A50729E12C1015@orsmsx115.jf.intel.com \
--to=johnh@ichips.intel.com \
--cc=caml-list@inria.fr \
--cc=ostruszk@order.if.uj.edu.pl \
/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