<?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="2009/01/2112b46e78c48d5a1e210bbd83ebb31a"
  from="Dawid Toton &lt;dawid.toton@u...&gt;"
  author="Dawid Toton"
  date="2009-01-09T14:06:49"
  subject="Toplevel - load cmo from given location"
  prev="2009/01/c2641b2a52606a6aff3aabe0204177b0"
  next="2009/01/8098af0c31ee2dfc908c6c4b9d081e1e"
  next-in-thread="2009/01/e089a87758b262aa447bde4a9388582e"
  prev-thread="2009/01/5c289b2a10ec7c701b7b196284e19c78"
  next-thread="2009/01/8098af0c31ee2dfc908c6c4b9d081e1e"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="Toplevel - load cmo from given location">
<msg 
  url="2009/01/2112b46e78c48d5a1e210bbd83ebb31a"
  from="Dawid Toton &lt;dawid.toton@u...&gt;"
  author="Dawid Toton"
  date="2009-01-09T14:06:49"
  subject="Toplevel - load cmo from given location">
<msg 
  url="2009/01/e089a87758b262aa447bde4a9388582e"
  from="Christophe TROESTLER &lt;Christophe.Troestler+ocaml@u...&gt;"
  author="Christophe TROESTLER"
  date="2009-01-09T14:40:25"
  subject="Re: [Caml-list] Toplevel - load cmo from given location">
<msg 
  url="2009/01/6e6d3c0326d97e4ac71e057ef3170786"
  from="Dawid Toton &lt;d0@w...&gt;"
  author="Dawid Toton"
  date="2009-01-09T15:08:29"
  subject="Re: [Caml-list] Toplevel - load cmo from given location">
<msg 
  url="2009/01/3884db1d1064e8341b9e0ba01c22eb72"
  from="Richard Jones &lt;rich@a...&gt;"
  author="Richard Jones"
  date="2009-01-09T21:39:28"
  subject="Re: [Caml-list] Toplevel - load cmo from given location">
</msg>
</msg>
</msg>
<msg 
  url="2009/01/f8a33f74e66883b70cf383c45b74875b"
  from="Zheng Li &lt;zheng_li@u...&gt;"
  author="Zheng Li"
  date="2009-01-09T17:33:11"
  subject="Re: Toplevel - load cmo from given location">
</msg>
</msg>
</thread>

<contents>
I've noticed stange behaviour:

The following works OK (using #directory directive):

#!/usr/bin/ocamlrun ocaml
#directory "/home/dt2/Calc1/CalcEngine/src/_build/extlib/"
#load "enum.cmo"
open Enum

But this version not (using the full path directly):

#!/usr/bin/ocamlrun ocaml
#load "/home/dt2/Calc1/CalcEngine/src/_build/extlib/enum.cmo"
open Enum

The problem is that it gives "Unbound module Enum" while no error about 
loading the cmo&amp;cmi is shown.
So:
* if it finds correctly the enum.cmi: why "open Enum" doesn't work?
* if the cmi is not found, why I see no message like "*Cannot find file 
*/home/dt2/Calc1/CalcEngine/src/_build/extlib/enum.cmi*" - as chapter 
9.4 of docs suggests? Does the toplevel check for the cmi in the same 
location as cmo? *
(I tested this with the cmi file existing there as built by ocamlbuild)

Dawid

</contents>

</message>

