The windows definitions in Phobos should be broken into smaller files.
alias int LONG;std.windows.iunknown defines:
alias int HRESULT; alias LONG HRESULT;This causes a conflict problem when both std.c.windows.windows and std.windows.iunknown are imported by another module and HRESULT is used by this third module (even though HRESULT has the exact same meaning in both modules).
I think it'd be more logical if the first 100 lines of std.c.windows.windows were a separate file (perhaps called std.c.windows.wtypes) that would then be imported by both std.c.windows.windows and std.windows.iunknown.
I think this can be used as a work-around:
alias std.c.windows.windows.HRESULT HRESULT;but Phobos modules should designed to minimize the need for messy work-arounds.
(C) subject to the FDL (Free Documentation License)
last change: September 22, 2004