From 93c6dba5cfd06d5cad27c6f3c0ca4af167a200fd Mon Sep 17 00:00:00 2001 From: herbelin Date: Fri, 20 Jan 2012 23:52:11 +0000 Subject: Added documentation for "Set Parsing Explicit" + fixed mistakenly committed "assert" in commit r14928. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@14930 85f007b7-540e-0410-9357-904b9bb8a0f7 --- doc/refman/RefMan-ext.tex | 15 +++++++++++++++ interp/constrintern.ml | 1 - 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/doc/refman/RefMan-ext.tex b/doc/refman/RefMan-ext.tex index 2da5bec186..0cfdbe17b9 100644 --- a/doc/refman/RefMan-ext.tex +++ b/doc/refman/RefMan-ext.tex @@ -1557,8 +1557,23 @@ but succeeds in Check Prop = nat. \end{coq_example*} +\subsection{Deactivation of implicit arguments for parsing} +\comindex{Set Parsing Explicit} +\comindex{Unset Parsing Explicit} +Use of implicit arguments can be deactivated by issuing the command: +\begin{quote} +{\tt Set Parsing Explicit.} +\end{quote} +In this case, all arguments of constants, inductive types, +constructors, etc, including the arguments declared as implicit, have +to be given as if none arguments were implicit. By symmetry, this also +affects printing. To restore parsing and normal printing of implicit +arguments, use: +\begin{quote} +{\tt Set Parsing Explicit.} +\end{quote} \subsection{Canonical structures \comindex{Canonical Structure}} diff --git a/interp/constrintern.ml b/interp/constrintern.ml index f36d56b83f..12376eb89d 100644 --- a/interp/constrintern.ml +++ b/interp/constrintern.ml @@ -1217,7 +1217,6 @@ let internalize sigma globalenv env allow_patvar lvar c = | CRef ref as x -> let (c,imp,subscopes,l),_ = intern_applied_reference intern env (Environ.named_context globalenv) lvar [] ref in - assert (l=[]); (match intern_impargs c env imp subscopes l with | [] -> c | l -> GApp (constr_loc x, c, l)) -- cgit v1.2.3