Skip to content

Update spec for multiple selective imports#2131

Merged
dlang-bot merged 3 commits intodlang:masterfrom
wilzbach:imports-spec
Feb 6, 2018
Merged

Update spec for multiple selective imports#2131
dlang-bot merged 3 commits intodlang:masterfrom
wilzbach:imports-spec

Conversation

@wilzbach
Copy link
Contributor

This is an attempt at updating the spec for the changes in dlang/dmd#6589
I wasn't so sure about the grammar changes.
(grammar.dd would also need an update)

See also: https://dlang.org/changelog/pending.html#multi_module_selective_imports

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @wilzbach!

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.

Copy link
Member

@andralex andralex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Please mind the dautotest failure.

spec/module.dd Outdated

$(SPEC_RUNNABLE_EXAMPLE_COMPILE
---
import std.stdio : writeln, std.file : write, std.ascii;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about an example that has multiple symbols per module? E.g.,

import std.stdio : writeln, writefln, std.file : write;

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(TBH I don't really like this syntax, because it mixes module names and symbols and is harder to read. But since it's in the spec, it should be illustrated properly.)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. done

@MetaLang
Copy link
Member

MetaLang commented Feb 6, 2018

Andrei has approved these changes and it looks like Wilzbach has addressed all issues, so I'm gonna merge.

@dlang-bot dlang-bot merged commit e469c79 into dlang:master Feb 6, 2018
@wilzbach wilzbach deleted the imports-spec branch February 22, 2018 14:41
MartinNowak added a commit to MartinNowak/dlang.org that referenced this pull request Feb 23, 2018
This reverts commit e469c79, reversing
changes made to 620548c.
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.

5 participants