Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
RE: [Caml-list] Re: Toplevel question ...
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-03-04 (18:03)
From: Harrison, John R <johnh@i...>
Subject: RE: [Caml-list] Re: Toplevel question ...
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?

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: