From 4d51d7e42125ecfec94768cac77e67026574c6f8 Mon Sep 17 00:00:00 2001 From: herbelin Date: Sun, 25 Jul 2010 22:17:43 +0000 Subject: Documentation of Set Automatic Coercions Import. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@13327 85f007b7-540e-0410-9357-904b9bb8a0f7 --- doc/refman/Coercion.tex | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'doc') diff --git a/doc/refman/Coercion.tex b/doc/refman/Coercion.tex index 4f3d3ec41e..3b6c949bae 100644 --- a/doc/refman/Coercion.tex +++ b/doc/refman/Coercion.tex @@ -367,6 +367,29 @@ Coercions with a local source class or a local target class, and coercions which do not verify the uniform inheritance condition any longer are also forgotten. +\asection{Coercions and Modules} +\index{Coercions!and modules} + +From Coq version 8.3, the coercions present in a module are activated +only when the module is explicitly imported. Formerly, the coercions +were activated as soon as the module was required, whatever it was +imported or not. + +To recover the behavior of the versions of Coq prior to 8.3, use the +following command: + +\comindex{Set Automatic Coercions Import} +\comindex{Unset Automatic Coercions Import} +\begin{verbatim} +Set Automatic Coercions Import. +\end{verbatim} + +To cancel the effect of the option, use instead: + +\begin{verbatim} +Unset Automatic Coercions Import. +\end{verbatim} + \asection{Examples} There are three situations: -- cgit v1.2.3