That was my point. Current WinAPI binding in druntime is not as clean and thin as it could and should be. Not to mention, that it's very very lacking.<div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Nov 24, 2012 at 3:08 AM, Jonathan M Davis <span dir="ltr"><<a href="mailto:jmdavisProg@gmx.com" target="_blank">jmdavisProg@gmx.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Friday, November 23, 2012 15:15:41 Gor Gyolchanyan wrote:<br>
> As we all know, the WinAPI binding in druntime as well as the static<br>
> libraries of WinAPI, which come with DMD are in horrendous state.<br>
<br>
</div>I am not all that well acquainted with all of the issues involved with the<br>
Win32 API, so I'm probably not the best qualified to chime in on how they<br>
should be handled. However, I would point out that given that the Win32 API is<br>
effectively the system layer API for Windows, it should be fully supported in<br>
druntime (just like glibc should be fully supported for Linux by druntime),<br>
and as Walter points out, such a layer should be thin rather than trying to fix<br>
anything (that's the job of Phobos or other wrapper libraries). And since<br>
we're about to have 64-bit Windows support, druntime should be updated with<br>
whatever C prototypes are in the 64-bit Windows API (and I really don't know<br>
how those relate to the Win32 API other than the fact that as I understand it,<br>
64-bit Windows still uses some version of the Win32 API).<br>
<br>
So, I would hope that the various Windows Gurus around here could come to an<br>
agreement on how the Windows API bindings should be put into druntime and then<br>
someone (or several someones) would take the time to implement that. I don't<br>
think that we should continue with the approach that anyone doing anything<br>
serious with the Win32 API has to use a 3rd party project to do it. OS-level<br>
functions should be part of druntime for every OS that we support, and it's<br>
worthy of a bug report every time that we find an OS-level function that is not<br>
in druntime.<br>
<span class="HOEnZb"><font color="#888888"><br>
- Jonathan M Davis<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Bye,<br>Gor Gyolchanyan.<br>
</div>