diff options
| author | Pierre-Marie Pédrot | 2015-04-01 19:00:54 +0200 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2015-04-01 19:45:56 +0200 |
| commit | 20de2185c8b9887d0ad83fc7c2bb82ab6bfe39d6 (patch) | |
| tree | 52c79c6f711cc8dd8f26197a200e5550a6610549 /doc/refman/RefMan-oth.tex | |
| parent | 7c41bc9bdc883aacbc015954a89ff13fe9c9c1c0 (diff) | |
Documenting "From * Require *" and clearing a bit the loadpath chapter.
Diffstat (limited to 'doc/refman/RefMan-oth.tex')
| -rw-r--r-- | doc/refman/RefMan-oth.tex | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/doc/refman/RefMan-oth.tex b/doc/refman/RefMan-oth.tex index 556a2dab58..85deb31756 100644 --- a/doc/refman/RefMan-oth.tex +++ b/doc/refman/RefMan-oth.tex @@ -553,10 +553,11 @@ the form {\dirpath}{\tt .}{\textsl{ident}} and the file {\ident}{\tt mapped in {\Coq} loadpath to the logical path {\dirpath} (see Section~\ref{loadpath}). The mapping between physical directories and logical names at the time of requiring the file must be consistent -with the mapping used to compile the file. +with the mapping used to compile the file. If several files match, one of them +is picked in an unspecified fashion. \begin{Variants} -\item {\tt Require Import {\qualid}.} \comindex{Require} +\item {\tt Require Import {\qualid}.} \comindex{Require Import} This loads and declares the module {\qualid} and its dependencies then imports the contents of {\qualid} as described in @@ -585,6 +586,15 @@ with the mapping used to compile the file. given, it also imports {\qualid}$_1$, \ldots, {\qualid}$_n$ and all the recursive dependencies that were marked or transitively marked as {\tt Export}. + +\item {\tt From {\dirpath} Require {\qualid}.} + \comindex{From Require} + + This command acts as {\tt Require}, but picks any library whose absolute name + is of the form {\tt{\dirpath}.{\dirpath'}.{\qualid}} for some {\dirpath'}. + This is useful to ensure that the {\qualid} library comes from a given + package by expliciting its absolute root. + \end{Variants} \begin{ErrMsgs} |
