Skip to content

Commit e722596

Browse files
committed
Review #2
1 parent 8362084 commit e722596

File tree

2 files changed

+11
-20
lines changed

2 files changed

+11
-20
lines changed

doc/sphinx/practical-tools/utilities.rst

+3-11
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,6 @@ locations such as `user-contrib` or `COQPATH` must either use an exact logical p
269269
or include a `From` clause (as if they are available through `-Q`). This is done
270270
to reduce the number of ambiguous logical paths.
271271

272-
.. todo I expect .vo files convert all logical paths into absolute paths.
273-
274272
The mechanisms for creating logical paths for your multi-directory project are:
275273

276274
- Through command line options passed on the command line to `coqc` and `coqide`,
@@ -284,9 +282,7 @@ The mechanisms for creating logical paths for your multi-directory project are:
284282
the other IDEs, they automatically look for a `_CoqProject` file in a
285283
parent directory of the script file, and, if found, they apply the parameters from
286284
`_CoqProject`. Note that the `_CoqProject` file is ignored when Coq loads
287-
compiled files from the package. (Also, when loading, every `.vo` file under the
288-
package directory is considered part of the package even if its `.v` file isn't
289-
listed in the `_CoqProject`.)
285+
compiled files from the package; every `.vo` file under the package directory is loaded.
290286

291287
Coq tools are limited to using only one `_CoqProject` at a time, so multi-package
292288
projects need another mechanism.
@@ -337,12 +333,8 @@ Those added options shouldn't appear in published packages.
337333
.. todo I thought @herbelin added code to complain about ambiguous short names
338334
I made up some stuff below, need to check it:
339335
340-
If you associate the same logical name with more than one directory, Coq will
341-
use the last one added (i.e., that appears earlier in :cmd:`Print LoadPath`).
342-
Nor will Coq complain if the short name of a package is ambiguous. Perhaps
343-
in the future, Coq will be able to report such conflicts. We recommend using
344-
the :n:`From @dirpath` option of :cmd:`Require` to make the behavior more predictable.
345-
336+
If you associate the same logical name with more than one directory, Coq
337+
uses the last one added (i.e., that appears earlier in :cmd:`Print LoadPath`).
346338

347339
Upgrading to a new version of Coq
348340
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

doc/sphinx/proof-engine/vernacular-commands.rst

+8-9
Original file line numberDiff line numberDiff line change
@@ -547,8 +547,7 @@ file is a particular case of a module called a *library file*.
547547
reloaded. If :n:`Import` or :n:`Export` are present, the command also does
548548
the equivalent of the :cmd:`Import` or :cmd:`Export` commands.
549549

550-
Compiled files can sometimes be loaded using suffixes of the file's
551-
fully qualified name.
550+
A single file can be loaded with several variations of the `Require` command.
552551
For example, the ``-Q path Lib`` command line parameter associates the file
553552
``path/Foo/File.vo`` with the logical name ``Lib.Foo.File``. It allows this
554553
file to be loaded through :n:`Require Lib.Foo.File`, :n:`From Lib Require Foo.File`,
@@ -559,18 +558,18 @@ file is a particular case of a module called a *library file*.
559558
package or subpackage. Use of `-Q` is better for avoiding ambiguous
560559
path names.
561560

562-
When looking for a file :n:`@dirpath.{* @ident__implicit. }@qualid` or
563-
:n:`{* @ident__implicit. }@qualid`,
564-
exact matches are preferred (that is, matches where the implicit part
565-
is empty). If the name exactly matches in
566-
multiple `-R` or `-Q` options, the file corresponding to the most
567-
recent `-R` or `-Q` is used. If there is no exact match, the
561+
Exact matches are preferred when looking for a file with the logical name
562+
:n:`@dirpath.{* @ident__implicit. }@qualid` or
563+
:n:`{* @ident__implicit. }@qualid`
564+
(that is, matches where the implicit part is empty). If the name exactly
565+
matches in multiple `-R` or `-Q` options, the file corresponding to the most
566+
recent `-R` or `-Q` is used. If there is no exact match, the
568567
matches from the most recent `-R` or `-Q` are selected. If this
569568
results in a unique match, the corresponding file is selected. If
570569
this results in several matches, it is an error. The difference
571570
between the `-R` and the `-Q` option is that non-exact matches are
572571
allowed for `-Q` only if `From` is present, that is if a prefix is
573-
given. Matching is done when only the script is compiled
572+
given. Matching is done when the script is compiled
574573
or processed rather than when its .vo file is loaded. .vo files use
575574
fully-qualified names.
576575

0 commit comments

Comments
 (0)