caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Toplevel question ...
@ 2002-02-28 15:49 Andrzej M. Ostruszka
  2002-03-01  9:36 ` Tomasz Zielonka
  2002-03-06 10:24 ` [Caml-list] " Xavier Leroy
  0 siblings, 2 replies; 8+ messages in thread
From: Andrzej M. Ostruszka @ 2002-02-28 15:49 UTC (permalink / raw)
  To: Caml List

Hi,

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 never thought I'll use OCaml for what I'm doing (theoretical physics -
no data analysis) but right now I'm doing some symbolic dynamics for
Markov chains and it is much more comfortable to do it in OCaml then in
Matlab (cause of 'a list :)).

						Best regards
-- 
    ____   _  ___
   /  | \_/ |/ _ \		Andrzej Marek Ostruszka
  / _ |     | (_) | Instytut Fizyki, Uniwersytet Jagiellonski (Cracow)
 /_/ L|_|V|_|\___/	(PGP <-- finger ostruszk@order.if.uj.edu.pl)
-------------------
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


^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: [Caml-list] Re: Toplevel question ...
@ 2002-03-04 17:10 Harrison, John R
  2002-03-04 18:42 ` Daniel de Rauglaudre
  0 siblings, 1 reply; 8+ messages in thread
From: Harrison, John R @ 2002-03-04 17:10 UTC (permalink / raw)
  To: 'Andrzej M. Ostruszka', Caml List; +Cc: Harrison, John R

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-03-06 17:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-28 15:49 [Caml-list] Toplevel question Andrzej M. Ostruszka
2002-03-01  9:36 ` Tomasz Zielonka
2002-03-02 10:25   ` [Caml-list] " Andrzej M. Ostruszka
2002-03-06 10:24 ` [Caml-list] " Xavier Leroy
2002-03-06 10:41   ` Mattias Waldau
2002-03-06 17:33   ` shiv
2002-03-04 17:10 [Caml-list] " Harrison, John R
2002-03-04 18:42 ` Daniel de Rauglaudre

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).