Win32 binding replacement

Don nospam at nospam.com
Sat Oct 15 22:29:59 PDT 2011


On 15.10.2011 18:54, Sean Kelly wrote:
> At the time, there were some errors in the headers and I wasn't up to tracking them down.
 >It was also unclear whether the headers were copyrighted, though I've 
since found that docs surrounding the Boost license that headers aren't 
copyrightable.

 > Finally, no one has complained about lack of windows header coverage.

????
Bug 317. Nearly everyone on Windows complains about them, I think!

>The headers you mention are enormous, which means more program bloat and more maintenance work. I wouldn't replace what we've got unless people really want the other ones.

std.windows is a complete joke. I don't think it's usable. There are 
some really simple functions it doesn't include. Last time I used it, I 
even found cases where it has a GetXXX function but not the 
corresponding SetXXX function. As far as I can tell, it is the set of 
functions required to compile "Empire", and then a few more functions added.

It's possible to make a case for including only a small subset of the 
Windows API in the download (ie, that part of the headers which is used 
by Phobos itself). But in that case, I think it should be marketed 
differently, and not called "windows".

I would say, though, that it's pretty hard to make that case if we 
include headers for SQLlite, as seems to be happening.

The bindings Win32 project was originally set up to replace std.windows. 
It was based on the MingW headers to avoid license issues. Now, I don't 
know what recent contributors have done; it could be that some people 
have grabbed stuff from the Windows headers (I suspect that may be true 
of the DirectX stuff).
If it's true that headers aren't copyrightable, then I don't know why 
the MingW headers exist. Is that really true?

Here's where the MingW guys ask the same question, and I think the 
answer is "nobody is certain".
http://old.nabble.com/Google%27s-Android-Bionic-header-files,-and-relevance-to-w32api-headers-td31271566.html

But, more interesting is Digital Mars's agreement with Microsoft WRT 
header file distribution. It may be possible to make it a DMD download 
rather than Phobos per se.
>
> Sent from my iPhone
>
> On Oct 15, 2011, at 9:00 AM, Gor Gyolchanyan<gor.f.gyolchanyan at gmail.com>  wrote:
>
>> I've found a wonderful Win32 API binding on dsource, which is far more
>> complete, then the one in Phobos:
>> http://svn.dsource.org/projects/bindings/trunk/win32/
>> Why not replace the Phobos one with this one?



More information about the Digitalmars-d mailing list