coq-club AT inria.fr
Subject: The Coq mailing list
List archive
Re: [Coq-Club] How to disambiguate short names, when absolute name is same as short name?
Chronological Thread
- From: Jason Gross <jasongross9 AT gmail.com>
- To: coq-club <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] How to disambiguate short names, when absolute name is same as short name?
- Date: Wed, 7 Jan 2015 12:34:51 -0500
Try passing `-R . Somename` to coqc/coqtop/coq_makefile, and then using Somename.MyMod.
-Jason
On Jan 7, 2015 5:16 PM, "Peter LeFanu Lumsdaine" <p.l.lumsdaine AT gmail.com> wrote:
On Wed, Jan 7, 2015 at 3:08 AM, Jonathan Leivent <jonikelee AT gmail.com> wrote:
I think the "Top." prefix always works for anchoring absolute names: Top.MyModThat does not seem to work: [Require Import Top.MyMod] gives> Error: Cannot find library Top.MyMod in loadpathwhile, for comparison, [Require Import MyMod] gives> Warning: MyMod.vo has been found in> [ /Users/peterlefanulumsdaine/[…]/mydir/D2 ;> /Users/peterlefanulumsdaine/[…]/mydir/D1 ;> /Users/peterlefanulumsdaine/[…]/mydir ];> loading /Users/peterlefanulumsdaine/[…]/mydir/D2/MyMod.voIf I am understanding the manual correctly, Top is the module in which objects defined during the current session are placed, so "Top.foo" is the absolute name of a newly defined object "foo"; but imported libraries are not within Top.–p.
- [Coq-Club] How to disambiguate short names, when absolute name is same as short name?, Peter LeFanu Lumsdaine, 01/06/2015
- Re: [Coq-Club] How to disambiguate short names, when absolute name is same as short name?, Jonathan Leivent, 01/07/2015
- Re: [Coq-Club] How to disambiguate short names, when absolute name is same as short name?, Peter LeFanu Lumsdaine, 01/07/2015
- Re: [Coq-Club] How to disambiguate short names, when absolute name is same as short name?, Jason Gross, 01/07/2015
- Re: [Coq-Club] How to disambiguate short names, when absolute name is same as short name?, Peter LeFanu Lumsdaine, 01/07/2015
- Re: [Coq-Club] How to disambiguate short names, when absolute name is same as short name?, Jonathan Leivent, 01/07/2015
Archive powered by MHonArc 2.6.18.