The one-clause page shows the refusal it claims - #44
Merged
Conversation
The page's own heading says "A host without `Io.save` refuses the second module, before any of it runs." The snippet under it ran the module with no host at all and read whichever import execution reached first, which for both of these modules is `deed:io.read` — the operation they share, not the clause that is the difference. Measured in deed-lang/deed#964. `Host::link` reads the whole import section and answers before an instruction runs, which is what the heading says, so that is what the page shows now. The other half is on the page too: the same host links the read-only module and hands it back ready to call. A host that refused both would be a host with no filesystem and would say nothing about the clause. The test transcript further down was five tests and named one that no longer exists. It is seven now, and the compiler's repository reads that list back out of `demo/README.md` on every commit, so this page and that one cannot drift apart quietly again.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The heading on this section says:
The snippet under it did something else. It ran the module with no host at
all and read whichever import execution reached first, which for both of
these modules is
deed:io.read— the operation they share, not the clause thatis the difference between them. A host behaving that way would have read the
file before noticing it could not save.
Measured and fixed on the compiler side in
deed-lang/deed#964, where the
test named for
saveturned out never to mentionsave.What this page shows now
Host::linkreads the whole import section and answers before an instructionruns, which is what the heading claims:
And the other half, which is what makes the first half mean anything: the same
host links the read-only module and hands it back ready to call. A host that
refused both would be a host with no filesystem.
The transcript
Five tests, one of which no longer exists, becomes seven. The compiler's
repository now reads that list back out of
demo/README.mdand compares it tothe tests the file declares, so this page and that one cannot drift apart
quietly again.
node tools/check.mjs: 72 files, every link resolves, and v0.2.10 loaded andanswered about all 29 examples.