jafingerhut / p4-namespaces

A public repo for discussion of adding namespaces to the P4 programming language
Apache License 2.0
5 stars 0 forks source link

Should we support multiple versions of the same module installed on the system simultaneously? #14

Open jfingerh opened 2 years ago

jfingerh commented 2 years ago

The starting point of this proposal is "no". You cannot install different versions of a module on the system at once, and use both of them in the same program.

You can change your module path, and/or the module definitions in your module path, between runs of the compiler, and get different versions on different compiler runs, of course.

But you cannot have two different versions of a module used by the same program on the same compilation run.

det-intel commented 2 years ago

I wrote up a summary of the "hierarchical identifier reference" approach to namespaces and discussed the question of versioning in this Google doc: https://docs.google.com/document/d/1onMDxcgOgpCrUTDVKMq2UxHR7XL1mifBrktmQd2ecRU/edit?usp=sharing

Please comment on the doc or message me directly with questions or comments.