On 24 November 2012 21:32, Walter Bright <span dir="ltr"><<a href="mailto:newshound2@digitalmars.com" target="_blank">newshound2@digitalmars.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 11/24/2012 10:45 AM, Manu wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm regularly annoyed by the quality of the druntime windows bindigs. I use this<br>
one: <a href="http://www.dsource.org/projects/bindings/wiki/WindowsApi" target="_blank">http://www.dsource.org/<u></u>projects/bindings/wiki/<u></u>WindowsApi</a><br>
It's better.<br>
<br>
I don't think there's really any room for opinion on the topic, the windows<br>
bindings should simply be complete, and correct.<br>
It's a flat C api, I can't imagine anything in there that doesn't translate to D<br>
well.<br>
</blockquote>
<br></div>
You can always simply add the ones you need to druntime, and issue a pull request.</blockquote><div><br></div><div>Sure, but that's rather time consuming, and the other library I linked is pretty decent.</div><div>I'm just supporting the case that more thorough support in druntime would be warmly welcomed :)</div>
<div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
As said before, the only details that might require some discussion are the<br>
handling of the windows version macro, and the unicode macro.<br>
I would personally just expect to use them exactly as they are in C, and expect<br>
the user to supply the appropriate versions to D when compiling.<br>
</blockquote>
<br></div>
I'd forget about the unicode macro, and call the A or W versions explicitly.<br>
</blockquote></div></div><div class="gmail_extra"><br></div><div class="gmail_extra">This causes rather annoying issues while porting, and tutorials becomes obscured. Many novice programmers don't understand that most functions are an alias of *A/*U, will be confused by the errors, and I even know many programmers who don't understand what unicode is, therefore don't understand the decision they are making.</div>
<div class="gmail_extra">I think the aliases are important, they allow tutorials and novice users to continue to work effectively.</div>