[fine] Loader takes Option<base>, global module map

Just some hacking on modules
This commit is contained in:
John Doty 2024-04-06 10:00:22 -07:00
parent a3d4c24f11
commit 52e1879ef4
4 changed files with 121 additions and 65 deletions

View file

@ -1,6 +1,5 @@
- The Export enum is stupid I think, for runtime modules. Why do we even have them? We should just put all the names in, like Declaration {} but for runtime.
- Module IDs must be globally resolvable from within a given semantics object
- When adding PANIC instructions, push a diagnostic that I find if I can find one instead of a hard-coded string.
- runtime should have `new` with 0 args and `with_loader<T : ModuleLoader>` that does the boxing, and `new` should just make the standard one