<?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/07/b09089b88fcc991feb19d33a3201f432"
  from="Matt Gushee &lt;mgushee@h...&gt;"
  author="Matt Gushee"
  date="2003-07-01T01:49:56"
  subject="Re: [Caml-list] how to use a module"
  prev="2003/07/7abe694a2d20ce5682186129ee476c7a"
  next="2003/07/15d51d2fd4e64eb2ce8c4f52ea645c5f"
  prev-in-thread="2003/06/5a327328e9738765806d584d52354b45"
  next-in-thread="2003/07/663279d54087691e1e8d563df218286c"
  prev-thread="2003/06/59218369fd3fa7dddfd9df9c7869c6bc"
  next-thread="2003/07/db3a2b751539216b3e4019428634b021"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="Re: [Caml-list] how to use a module">
<msg 
  url="2003/06/5a327328e9738765806d584d52354b45"
  from="Jean-Baptiste Rouquier &lt;jb.rouquier@w...&gt;"
  author="Jean-Baptiste Rouquier"
  date="2003-06-30T20:28:56"
  subject="Re: [Caml-list] how to use a module">
<msg 
  url="2003/07/b09089b88fcc991feb19d33a3201f432"
  from="Matt Gushee &lt;mgushee@h...&gt;"
  author="Matt Gushee"
  date="2003-07-01T01:49:56"
  subject="Re: [Caml-list] how to use a module">
<msg 
  url="2003/07/663279d54087691e1e8d563df218286c"
  from="Remi Vanicat &lt;vanicat@l...&gt;"
  author="Remi Vanicat"
  date="2003-07-01T10:31:59"
  subject="Re: [Caml-list] how to use a module">
<msg 
  url="2003/07/89fb7452334d03c749c4d369c4ac6a27"
  from="Matt Gushee &lt;mgushee@h...&gt;"
  author="Matt Gushee"
  date="2003-07-01T18:29:13"
  subject="Ledit (was Re: [Caml-list] how to use a module)">
<msg 
  url="2003/07/7b3baf6dfe6301db0f18651224bffc72"
  from="Manos Renieris &lt;er@c...&gt;"
  author="Manos Renieris"
  date="2003-07-01T18:41:22"
  subject="Re: Ledit (was Re: [Caml-list] how to use a module)">
</msg>
<msg 
  url="2003/07/d323cc3223fee0d5707484eddacff6ba"
  from="Neel Krishnaswami &lt;neelk@a...&gt;"
  author="Neel Krishnaswami"
  date="2003-07-01T18:42:13"
  subject="Re: Ledit (was Re: [Caml-list] how to use a module)">
<msg 
  url="2003/07/01789b9c03aebe041acaad47af1a9403"
  from="Matt Gushee &lt;mgushee@h...&gt;"
  author="Matt Gushee"
  date="2003-07-01T19:24:51"
  subject="Re: Ledit (was Re: [Caml-list] how to use a module)">
</msg>
<msg 
  url="2003/07/5fcbc4efc7f778d847455609a821429f"
  from="Karl Zilles &lt;zilles@1...&gt;"
  author="Karl Zilles"
  date="2003-07-01T20:51:21"
  subject="Re: Ledit (was Re: [Caml-list] how to use a module)">
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</thread>

<contents>
On Mon, Jun 30, 2003 at 10:11:54PM +0200, Jean-Baptiste Rouquier wrote:
&gt; 
&gt; (*if you file is already compiled, you can use :*)
&gt; #load "qux.cmo";;

If you know in advance what you want to load, you can also load it by
passing it as an argument to the toplevel, e.g.:

  $ ocaml qux.cmo

I prefer this approach because it cuts down on the characters I have to
retype when I make errors (Note to OCaml team: can we *please* get some
kind of history-editing functionality in the toplevel? I know there are
licensing and portability issues with GNU readline, but what about the
getline library used by OCaml2?)

This approach is also handy if you want to quickly check your syntax:

  $ ocaml my_new_module.ml

This doesn't give you an interactive shell, so it's different from
  
  $ ocaml
  # #use "my_new_module.ml";;

But it will tell you if there are errors in your code.

-- 
Matt Gushee                 When a nation follows the Way,
Englewood, Colorado, USA    Horses bear manure through
mgushee@havenrock.com           its fields;
http://www.havenrock.com/   When a nation ignores the Way,
                            Horses bear soldiers through
                                its streets.
                                
                            --Lao Tzu (Peter Merel, trans.)

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

