FrontPage | News | TestPage | MessageBoard | Search | Contributors | Folders | Index | Help | Preferences | Edit Justin Calvarese / |
===File= Posting:digitalmars.D/10315: getcwd seems to end with a null character |
Bite-sized Chunks
The windows definitions in Phobos should be broken into smaller files.
std.c.windows.windows defines:
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.
Proposal for Reorganization
|
FrontPage | News | TestPage | MessageBoard | Search | Contributors | Folders | Index | Help | Preferences | Edit
Edit text of this page (date of last change: September 22, 2004 6:35 (diff))
(C) subject to the FDL (Free Documentation License)
last change: September 22, 2004