Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Pierre Weis <Pierre.Weis@inria.fr>
To: skaller@maxtal.com.au (skaller)
Cc: caml-list@inria.fr
Subject: Re: What am I missing?
Date: Fri, 17 Sep 1999 14:44:16 +0200 (MET DST)	[thread overview]
Message-ID: <199909171244.OAA22193@pauillac.inria.fr> (raw)
In-Reply-To: <37E195CC.9E3CF558@maxtal.com.au> from "skaller" at Sep 17, 99 11:13:49 am

> Why?
> 
> [root@ruby] ~/felix>ocamlc util.ml
> [root@ruby] ~/felix>ocamlc util.mli
> [root@ruby] ~/felix>ocaml
>         Objective Caml version 2.02
> 
> # open Util;;
> # string_of_list;;
> Reference to undefined global `Util'

When you open a module you just add the list of exported names from
that module to your current environment (the interface of the module is
loaded). The corresponding implementation must be loaded (the code has
to be linked), before using any of the names defined in the
implementation. Use the pragma #load in the interactive environment to
link the code:

        Objective Caml version 2.02

# open Util;;
# #load"util.cmo";;
# string_of_list;;
- : 'a list -> string = <fun>

Best regards,

Pierre Weis

INRIA, Projet Cristal, Pierre.Weis@inria.fr, http://cristal.inria.fr/~weis/





  reply	other threads:[~1999-09-17 12:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-17  1:13 skaller
1999-09-17 12:44 ` Pierre Weis [this message]
1999-09-24  8:15   ` Tree of a certain class: Peter Schrammel
1999-09-24 12:06     ` Pierre Boulet
1999-09-24 12:18     ` Sylvain BOULM'E
1999-09-24 12:35     ` Jerome Vouillon

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=199909171244.OAA22193@pauillac.inria.fr \
    --to=pierre.weis@inria.fr \
    --cc=caml-list@inria.fr \
    --cc=skaller@maxtal.com.au \
    /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