[Issue 6099] New: std.windows.registry exposes too much implementation details
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jun 3 07:53:30 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6099
Summary: std.windows.registry exposes too much implementation
details
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: kai at redstar.de
--- Comment #0 from kai at redstar.de 2011-06-03 07:49:03 PDT ---
Created an attachment (id=992)
Hide implementation details in std.windows.registry
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.
The attached patch 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
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list