Skip to content

Conversation

redstar
Copy link
Contributor

@redstar redstar commented Jun 3, 2011

The program

import core.sys.windows.windows;
import std.windows.registry;

void main()
{
auto error = GetLastError();
}

causes an error because GetLastError() is declared and exported from both
modules.

Personally, I do not expect such conflicts from a library. The root cause is
that std.windows.registry exposes too much implementation details.

This pull request changes the following:

  • The windows API functions are not exported
  • Windows API functions duplicated from core.sys.windows.windows are removed
  • Type boolean is replaced by standard bool

andralex added a commit that referenced this pull request Jun 4, 2011
std.windows.registry exposes too much implementation details
@andralex andralex merged commit 0c8ce2a into dlang:master Jun 4, 2011
kuettler pushed a commit to kuettler/phobos that referenced this pull request Feb 6, 2018
Previous commit accidentally left changed.exe commented out.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants