Version française
Home     About     Download     Resources     Contact us    
Browse thread
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: briand@a...
Subject: [Caml-list] Re : [path directives]


Thank you very much for the solution.

Why doesn't the load fail or give some indication of a problem ?

Why doesn't caml know to look in the same directory which const.cmo
came from ?

I think I'll take a look through the sources and try and understand
why this isn't more user friendly.

Brian

>>>>> "Jean-Baptiste" == Jean-Baptiste Rouquier <jrouquiethearchiveshouldhaveafewantispamtricks@ens-lyon.fr> writes:

  Jean-Baptiste> It bites me quite often. Add a #directory
  Jean-Baptiste> "/home/login/src/ocaml/pll";; at the beginning of
  Jean-Baptiste> your session, to let ocaml find the file const.cmi.

  Jean-Baptiste> Jean-Baptiste Rouquier.

  >> ~/src/ocaml/math $ ocaml Objective Caml version 3.08.0
  >> 
  >> # #load "const.cmo";; # Const.pi
  >> ;;
  >> - : float = 3.14159265358979312 So then I change into another
  >> directory and load the EXACT SAME file.
  >> 
  >> 
  >> ~/src/ocaml/math $ cd ../pll ~/src/ocaml/pll $ ocaml Objective
  >> Caml version 3.08.0
  >> 
  >> # #load "../math/const.cmo";; # Const.pi;; Unbound value Const.pi

  Jean-Baptiste> ------------------- To unsubscribe, mail
  Jean-Baptiste> caml-list-request@inria.fr Archives:
  Jean-Baptiste> http://caml.inria.fr Bug reports:
  Jean-Baptiste> http://caml.inria.fr/bin/caml-bugs FAQ:
  Jean-Baptiste> http://caml.inria.fr/FAQ/ Beginner's list:
  Jean-Baptiste> http://groups.yahoo.com/group/ocaml_beginners

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