Interactive loop (toplevel)
How to stop the evaluation (execution) of an expression?
It is often possible to interrupt a program or the Caml system
by typing some combination of keys that is operating system
dependent: under Unix send an interrupt signal (generally
Control-C), under Macintosh OS type Command-.,
under Windows use the “Caml” menu.
How to quit the interactive loop?
With Caml Light, type
quit();;
. With OCaml,
type #quit;;
. In both, you can also send an
end-of-file (CTRL-D for Unix, CTRL-Z for DOS, etc.).