Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NES] [wish] propagate extra logical stuff to enclosing module #181

Open
gares opened this issue Aug 28, 2020 · 2 comments
Open

[NES] [wish] propagate extra logical stuff to enclosing module #181

gares opened this issue Aug 28, 2020 · 2 comments

Comments

@gares
Copy link
Contributor

gares commented Aug 28, 2020

In NES @CohenCyril and I use modules (and the nametab) to simulate namespaces.
One thing seems impossible to achieve without modifying the Libobject system.

Fail Check @default _ : nat.
(* This behavior requires Libobject to be aware of the role played by
a module: if it is a namespace some "actions" have to be propagated upward *)

CC @maximedenes do you think this is feasible?

@gares gares modified the milestone: 1.10.0 May 10, 2021
@Blaisorblade
Copy link
Contributor

👍 this is one reason I abuse #[global], but it doesn't have quite the right semantics...

@Blaisorblade
Copy link
Contributor

Oooh, seems that Export module(coercions, canonicals, hints) would fix this!
If NES generated that when closing a namespace, #[export] Instance inside a namespace would work well!

https://coq.inria.fr/refman/language/core/modules.html#coq:cmd.Import

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants