trueagi-io / hyperon-experimental

MeTTa programming language implementation
https://metta-lang.dev
MIT License
123 stars 43 forks source link

Changing module loading logic so modules aren't merged into runner until loading is complete #665

Closed luketpeterson closed 3 months ago

luketpeterson commented 3 months ago

This PR is a blocker for fixing the relative_submodule_import_test, and resolving several other issues.

It's a fairly substantial internal refactor to the module-loading process, but the only outward-facing change should be that modules are loaded as child modules of the module loading them, as opposed to loading at the top-level of the module namespace.

vsbogd commented 3 months ago

Thank Luke, I am happy to merge this.