Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-08-25 (18:54)
From: briand@a...
Subject: Re: [Caml-list] Re : [path directives]
>>>>> "Jacques" == Jacques GARRIGUE <> writes:

  Jacques> The basic reason is that there are two files to read:
  Jacques> const.cmo and const.cmi, and they are loaded by two
  Jacques> independent mechanisms.  const.cmo must be loaded
  Jacques> explicitly by a #load command, but const.cmi is searched
  Jacques> automatically in the path when a identifier is
  Jacques> used.  The independence of the two mechanisms may be
  Jacques> confusing, but you may understand it better if you think of
  Jacques> loading a .cma file: in that case, you really don't know
  Jacques> where the corresponding .cmi should be.

I understand the separation of implementation vs interface, however it
seems that a reasonable default it to use the path of the cma file to
find the cmi before giving up.

However if the mechanisms are _completely_ separate then I can see
where that would be a problem, and I believe that is what your are
saying (?)



To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: