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
[Caml-list] Toplevel with line editor.
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Mike Potanin <potanin@m...>
Subject: [Caml-list] Toplevel with line editor.

 IMHO, to run ocaml toplevel with pipes (like ocaml2) is not a good idea.
This program can't distinguish between toplevel output and user script
For example:
print_string "xxx# "; flush stdout ; ignore (input_line stdin);;

Standard toplevel can not hook line input (Toploop.refill_lexbuf).
I made patch to fix this problem and also I made a simple toplevel which
uses getline lib (based on ocaml2 code).

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