diff options
| author | filliatr | 1999-12-03 09:09:37 +0000 |
|---|---|---|
| committer | filliatr | 1999-12-03 09:09:37 +0000 |
| commit | f20dbafa3e49c35414640e01c3549ad1c802d331 (patch) | |
| tree | 761e97154851e214a6d6802c9decb977bfa1b07e /library/declare.mli | |
| parent | 4318eefacae280fed3a159acfede35c568b2942b (diff) | |
- global_reference traite des variables
- construct_reference, avec environnement en argument
- link de Class
- Definition et Check au toplevel
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@193 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'library/declare.mli')
| -rw-r--r-- | library/declare.mli | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/library/declare.mli b/library/declare.mli index 11f6b24979..4fe7767fd6 100644 --- a/library/declare.mli +++ b/library/declare.mli @@ -47,17 +47,24 @@ val out_variable : section_path -> identifier * typed_type * strength * bool val variable_strength : identifier -> strength -(*s It also provides a function [global_reference] to construct a global - constr (a constant, an inductive or a constructor) from an identifier. - To do so, it first looks for the section path using [Nametab.sp_of_id] and - then constructs the corresponding term, associated to the current - environment of variables. *) +(*s [global_operator sp id] returns the operator (constant, inductive or + construtor) corresponding to [(sp,id)] in global environment, together + with its definition environment. *) val global_operator : section_path -> identifier -> sorts oper * var_context + +(*s [global_reference k id] returns the object corresponding to + the name [id] in the global environment. It may be a constant, + an inductive, a construtor or a variable. It is instanciated + on the current environment of variables. [Nametab.sp_of_id] is used + to find the corresponding object. + [construct_reference] is a version which looks for variables in a + given environment instead of looking in the current global environment. *) + val global_reference : path_kind -> identifier -> constr val global_reference_imps : path_kind -> identifier -> constr * int list -val global : Environ.env -> identifier -> constr +val construct_reference : Environ.env -> path_kind -> identifier -> constr val is_global : identifier -> bool |
