<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2003/10/ac24472a1cecb98a5072dfa9c11183a1"
  from="Mike Potanin &lt;potanin@m...&gt;"
  author="Mike Potanin"
  date="2003-10-08T09:30:44"
  subject="[Caml-list] Toplevel with line editor."
  prev="2003/10/9e8f8460e573b77fae81812635df296f"
  next="2003/10/8e9cb69d70a2fad5e24b34d188e790a1"
  prev-thread="2003/10/69748afdbc12ebb69a81aa48769c3aab"
  next-thread="2003/10/e79513aa34d4347fb9f61c4d83c4e732"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] Toplevel with line editor.">
<msg 
  url="2003/10/ac24472a1cecb98a5072dfa9c11183a1"
  from="Mike Potanin &lt;potanin@m...&gt;"
  author="Mike Potanin"
  date="2003-10-08T09:30:44"
  subject="[Caml-list] Toplevel with line editor.">
</msg>
</thread>

<contents>

 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
output.
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).
http://wtk.ru/pm/fp/caml/iocaml.tgz

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

</contents>

</message>

