diff options
| author | herbelin | 2012-01-20 23:52:11 +0000 |
|---|---|---|
| committer | herbelin | 2012-01-20 23:52:11 +0000 |
| commit | 93c6dba5cfd06d5cad27c6f3c0ca4af167a200fd (patch) | |
| tree | de51957984a89991f3ecb5e3a835d083643704e6 | |
| parent | 1c9dcf7f3b083a66e1529aa9dbb0960c739f38d6 (diff) | |
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
| -rw-r--r-- | doc/refman/RefMan-ext.tex | 15 | ||||
| -rw-r--r-- | interp/constrintern.ml | 1 |
2 files changed, 15 insertions, 1 deletions
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)) |
