aboutsummaryrefslogtreecommitdiffhomepage
path: root/library/libobject.mli
diff options
context:
space:
mode:
Diffstat (limited to 'library/libobject.mli')
-rw-r--r--library/libobject.mli19
1 files changed, 9 insertions, 10 deletions
diff --git a/library/libobject.mli b/library/libobject.mli
index 7ddac57b2..ff076ee39 100644
--- a/library/libobject.mli
+++ b/library/libobject.mli
@@ -6,14 +6,14 @@ open Names
(*i*)
(* [Libobject] declares persistent objects, given with three methods:
- - a caching function specifying how to add the object in the current
- scope of theory modules;
- - a loading function, specifying what to do when the object is loaded
- from the disk;
- - an opening function, specifying what to do when the module containing
- the object is opened;
- - a specification function, to extract its specification when writing
- the specification of a module to the disk (.vi) *)
+ a caching function specifying how to add the object in the current
+ scope of theory modules;
+ a loading function, specifying what to do when the object is loaded
+ from the disk;
+ an opening function, specifying what to do when the module containing
+ the object is opened;
+ a specification function, to extract its specification when writing
+ the specification of a module to the disk (.vi) *)
type 'a object_declaration = {
cache_function : section_path * 'a -> unit;
@@ -21,8 +21,7 @@ type 'a object_declaration = {
open_function : 'a -> unit;
specification_function : 'a -> 'a }
-(*s Given the object-name, the "loading" function, the "caching" function,
- and the "specification" function, the function [declare_object]
+(*s Given an object name and a declaration, the function [declare_object]
will hand back two functions, the "injection" and "projection"
functions for dynamically typed library-objects. *)