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; 7+ 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] 7+ messages in thread
* RE: [Caml-list] Toplevel question ...
@ 2002-03-06 16:48 Harrison, John R
  0 siblings, 0 replies; 7+ messages in thread
From: Harrison, John R @ 2002-03-06 16:48 UTC (permalink / raw)
  To: 'Mattias Waldau', 'Xavier Leroy', 'Caml List'
  Cc: zielony, Harrison, John R

| So, technically, it would be feasible to resurrect the Caml V3.1      
| behavior: evaluating "expr ;;" at top-level binds the result 
| value to the name "it".  Do others think that it would be useful?
                                                               
As I've said, I really like the "it" feature. It's also difficult to        
imagine anyone seriously objecting to it, given that the Caml Light

misfeature of being unable to GC objects only accessible via overwritten

toplevel bindings has been corrected. I hadn't noticed that change

before, but I'm very pleased to see it.
                                                             
| (But I think that soon people would ask you to keep all the
| lines, so that we would write it.(4) instead.)                      
                                                                     
If some more elaborate solution like that were contemplated, I'd like
an option to disable it or manually force forgetting and GC of earlier
items.
                                                          
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] 7+ messages in thread

end of thread, other threads:[~2002-03-07  9:24 UTC | newest]

Thread overview: 7+ 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-06 16:48 Harrison, John R

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