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: -- (:)
From: Jacques GARRIGUE <garrigue@k...>
Subject: Re: [Caml-list] Re : [path directives]

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

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

Jacques Garrigue

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