You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The old version would (import (scheme base)) and reimporting something from there would then lead to an error. This version writes the complete content of .sld file into .rkt file.
I think in-lining the entire file isn't necessary here. include is available in the initial #lang r7rs module environment, so the intitial (import (scheme base)) can just be removed.
Though, I am curious about the original error, since the spec only says:
In a program or library declaration, it is an error to import the same identifier more than once with different bindings, or to redefine or mutate an imported binding with a definition or with set!, or to refer to an identifier before it is imported.
So I'm assuming you hit the "same identifier with different bindings case"? Or something weirder coming out of #lang r7rs
I think in-lining the entire file isn't necessary here. include is available in the initial #lang r7rs module environment, so the intitial (import (scheme base)) can just be removed.
Thanks! I didnt know that. I changed the code to that.
Though, I am curious about the original error, since the spec only says:
In a program or library declaration, it is an error to import the same identifier more than once with different bindings, or to redefine or mutate an imported binding with a definition or with set!, or to refer to an identifier before it is imported.
So I'm assuming you hit the "same identifier with different bindings case"? Or something weirder coming out of #lang r7rs
Something like that. I can not remember where I got the error anymore. I should have included it in the pull request.
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
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 old version would (import (scheme base)) and reimporting something from there would then lead to an error. This version writes the complete content of .sld file into .rkt file.