caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Daniel Bünzli" <daniel.buenzli@erratique.ch>
To: "Mr. Herr" <misterherr@freenet.de>
Cc: Caml List <caml-list@inria.fr>
Subject: Re: [Caml-list] undefined global Re_posix - ?
Date: Tue, 21 Jul 2015 00:09:58 +0100	[thread overview]
Message-ID: <CD97595D140F4DCEBCFAA91B42943A02@erratique.ch> (raw)
In-Reply-To: <55AD7820.8080608@freenet.de>

Le lundi, 20 juillet 2015 à 23:37, Mr. Herr a écrit :
> So there is not much to "/opt/opam/4.02.2/lib/re: added to search path"

This only tells you that it will lookup for .cmi files and .cm{o,a} files in this directory. It doesn't mean that it *loads* them.  

As you can see in your transcript only re.cma is loaded when you #require re and that archive doesn't have the re_posix.cmo file.  

The reason why #show_module Re_posix gives you an answer is because in that re directory there is the re_posix.cmi file which the toplevel sees and loads to provide you the directive result and mispelling advice. Interface files are automatically looked up but not implementations.

From a usability perspective one could argue that ocamlfind subpackages should install in their own subdirectory so that the kind of "strange" behaviour you witnessed does not occur.

Best,

Daniel



  reply	other threads:[~2015-07-20 23:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-20 20:00 Mr. Herr
2015-07-20 20:09 ` Ivan Gotovchits
2015-07-20 22:37   ` Mr. Herr
2015-07-20 23:09     ` Daniel Bünzli [this message]
2015-07-20 20:13 ` Jeremy Yallop

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=CD97595D140F4DCEBCFAA91B42943A02@erratique.ch \
    --to=daniel.buenzli@erratique.ch \
    --cc=caml-list@inria.fr \
    --cc=misterherr@freenet.de \
    /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;
as well as URLs for NNTP newsgroup(s).