WinAPI for druntime and OpenGL for deimos.

Walter Bright newshound2 at digitalmars.com
Sat Nov 24 11:32:07 PST 2012


On 11/24/2012 10:45 AM, Manu wrote:
> I'm regularly annoyed by the quality of the druntime windows bindigs. I use this
> one: http://www.dsource.org/projects/bindings/wiki/WindowsApi
> It's better.
>
> I don't think there's really any room for opinion on the topic, the windows
> bindings should simply be complete, and correct.
> It's a flat C api, I can't imagine anything in there that doesn't translate to D
> well.

You can always simply add the ones you need to druntime, and issue a pull request.

> As said before, the only details that might require some discussion are the
> handling of the windows version macro, and the unicode macro.
> I would personally just expect to use them exactly as they are in C, and expect
> the user to supply the appropriate versions to D when compiling.

I'd forget about the unicode macro, and call the A or W versions explicitly.


More information about the Digitalmars-d mailing list