Skip to content

Move reading of special __{main,stdin}.d from File to mars.d#9795

Merged
dlang-bot merged 1 commit intodlang:masterfrom
kinke:file3
May 15, 2019
Merged

Move reading of special __{main,stdin}.d from File to mars.d#9795
dlang-bot merged 1 commit intodlang:masterfrom
kinke:file3

Conversation

@kinke
Copy link
Contributor

@kinke kinke commented May 14, 2019

In 2.086, __main.d was 'read' in mars.d, and __stdin.d in struct File. In #9728, I moved both to File, and neglected that __main.d is only a special filename if the -main switch is used.

Move these special cases to mars.d and fix the __main.d oversight.

@dlang-bot
Copy link
Contributor

Thanks for your pull request and interest in making D better, @kinke! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please verify that your PR follows this checklist:

  • My PR is fully covered with tests (you can see the annotated coverage diff directly on GitHub with CodeCov's browser extension
  • My PR is as minimal as possible (smaller, focused PRs are easier to review than big ones)
  • I have provided a detailed rationale explaining my changes
  • New or modified functions have Ddoc comments (with Params: and Returns:)

Please see CONTRIBUTING.md for more information.


If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment.

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub fetch digger
dub run digger -- build "master + dmd#9795"

In 2.086, __main.d was 'read' in mars.d, and __stdin.d in struct File.
In dlang#9728, I moved both to File, and neglected that __main.d is only
a special filename if the `-main` switch is used.

Move these special cases to mars.d and fix the __main.d oversight.
@dlang-bot dlang-bot merged commit fbcc146 into dlang:master May 15, 2019
@kinke kinke deleted the file3 branch May 15, 2019 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants