Skip to content

Remove import of dmd.compiler from dmd.globals.#7615

Closed
ibuclaw wants to merge 1 commit intodlang:masterfrom
ibuclaw:staticcompiler
Closed

Remove import of dmd.compiler from dmd.globals.#7615
ibuclaw wants to merge 1 commit intodlang:masterfrom
ibuclaw:staticcompiler

Conversation

@ibuclaw
Copy link
Member

@ibuclaw ibuclaw commented Jan 6, 2018

This is blocking #7534 and #7559, as the D implementation is less encapsulated than C++ version.

@ibuclaw ibuclaw added the Review:Blocking Other Work review and pulling should be a priority label Jan 6, 2018
@dlang-bot
Copy link
Contributor

Thanks for your pull request, @ibuclaw!

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.

{
global.vendor = "Digital Mars D";
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

As discussed on IRC: how about making Compiler an interface instead?

Copy link
Member Author

Choose a reason for hiding this comment

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

I've given it some thought and I'd rather avoid this if possible. Having to maintain interfaces seems like a last resort solution. For sure though Global._init is a big problem to tackle, as a big chunk of it should go into Target, but the globals module cannot import target!

I'll start off with adding initGlobals and see where we go from there.

@ibuclaw ibuclaw closed this Jan 6, 2018
@ibuclaw ibuclaw deleted the staticcompiler branch January 6, 2018 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Review:Blocking Other Work review and pulling should be a priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants