diff options
| author | letouzey | 2013-07-17 15:31:36 +0000 |
|---|---|---|
| committer | letouzey | 2013-07-17 15:31:36 +0000 |
| commit | 3d09e39dd423d81c6af3e991d5b282ea8608646b (patch) | |
| tree | ae5e89db801b216b6152fb7d6bd0d7efe855ef57 /intf | |
| parent | 9f3fc5d04b69f0c6bf6eec56c32ed11a218dde61 (diff) | |
More dynamic argument scopes
When arguments scopes are set manually, nothing new, they stay
as they are (until maybe another Arguments invocation).
But when argument scopes are computed out of the argument type and
the Bind Scope information, this kind of scope is now dynamic:
a later Bind Scope will be able to impact the scopes of an earlier
constant. For Instance:
Definition f (n:nat) := n.
About f. (* Argument scope is [nat_scope] *)
Bind Scope other_scope with nat.
About f. (* Argument scope is [other_scope] *)
This allows to get rid of hacks for modifying scopes during functor
applications. Moreover, the subst_arguments_scope is now
environment-insensitive (needed for forthcoming changes in declaremods).
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16626 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'intf')
| -rw-r--r-- | intf/vernacexpr.mli | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/intf/vernacexpr.mli b/intf/vernacexpr.mli index f0f565b53d..a780ac0f15 100644 --- a/intf/vernacexpr.mli +++ b/intf/vernacexpr.mli @@ -230,19 +230,7 @@ type inline = | DefaultInline | InlineAt of int -(** Should we adapt a few scopes during functor application ? *) - -type scope_subst = (string * string) list - -(** The type of annotations for functor applications *) - -type funct_app_annot = - { ann_inline : inline; - ann_scope_subst : scope_subst } - -type 'a annotated = ('a * funct_app_annot) - -type module_ast_inl = module_ast annotated +type module_ast_inl = module_ast * inline type module_binder = bool option * lident list * module_ast_inl (** {6 The type of vernacular expressions} *) |
