diff options
| author | Emilio Jesus Gallego Arias | 2018-10-26 10:24:18 +0200 |
|---|---|---|
| committer | Emilio Jesus Gallego Arias | 2018-10-26 13:59:23 +0200 |
| commit | dccaed2452e544308b46f0c73ffd4f542ef4c8c6 (patch) | |
| tree | 3f95a7253acf3f06682bd036bc6f647c0121a085 /library/libobject.mli | |
| parent | 27266c1f79e565a6a19da4c79fc1ce83f748e31c (diff) | |
[libobject] Move object_name next to object definition.
`object_name` is a particular choice of the implementation of
`Liboject`, thus it makes sense to tie it to that particular module.
This may prove useful in the future as we may want to modify object
naming.
Diffstat (limited to 'library/libobject.mli')
| -rw-r--r-- | library/libobject.mli | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/library/libobject.mli b/library/libobject.mli index aefa81b225..c53537e654 100644 --- a/library/libobject.mli +++ b/library/libobject.mli @@ -66,6 +66,13 @@ open Mod_subst type 'a substitutivity = Dispose | Substitute of 'a | Keep of 'a | Anticipate of 'a +(** Both names are passed to objects: a "semantic" [kernel_name], which + can be substituted and a "syntactic" [full_path] which can be printed +*) + +type object_name = full_path * Names.KerName.t +val make_oname : object_prefix -> Names.Id.t -> object_name + type 'a object_declaration = { object_name : string; cache_function : object_name * 'a -> unit; |
