Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This MR rewrites the way in which modules define inheritance.
In more Detail
the
.default
keyword was misleading in multiple ways and has been removed (Closes Replace default as special name with boilerplate inheritance #44)enabling submodules (modules with modules beneath it)
changing the way relative modules are referenced. (Closes
set_scope()
with relative paths #29)Considering the
register
method of the modulea.b.c.d
.test cases checking all of those features
Before this MR:
.addional
referenceda.b.c.additional
(as typically one would use.default
module constructs)..
referenceda.b
.
referenceda.b.c
After this MR:
.addional
referencesa.b.c.d.additional
(as we allow submodules now)..
referencesa.b.c
.
is a noop.