From: Matt Gushee <mgushee@havenrock.com>
To: caml-list@pauillac.inria.fr
Subject: Re: [Caml-list] how to use a module
Date: Mon, 30 Jun 2003 19:49:54 -0600 [thread overview]
Message-ID: <20030701014954.GN4225@swordfish> (raw)
In-Reply-To: <004d01c33f46$2f16f480$fdbf0950@zofo>
On Mon, Jun 30, 2003 at 10:11:54PM +0200, Jean-Baptiste Rouquier wrote:
>
> (*if you file is already compiled, you can use :*)
> #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
next prev parent reply other threads:[~2003-07-01 1:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-30 20:11 Jean-Baptiste Rouquier
2003-07-01 1:49 ` Matt Gushee [this message]
2003-07-01 10:32 ` Remi Vanicat
2003-07-01 18:29 ` Ledit (was Re: [Caml-list] how to use a module) Matt Gushee
2003-07-01 18:41 ` Manos Renieris
2003-07-01 18:49 ` Neel Krishnaswami
2003-07-01 19:24 ` Matt Gushee
2003-07-01 20:51 ` Karl Zilles
-- strict thread matches above, loose matches on Subject: below --
2003-06-27 18:05 [Caml-list] how to use a module Jung Woon Ho
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030701014954.GN4225@swordfish \
--to=mgushee@havenrock.com \
--cc=caml-list@pauillac.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox