On 6/08/2015 11:29 p.m., Jacob Carlborg wrote:
On 06/08/15 08:29, Rikki Cattermole wrote:
5. Cocoa bindings added to Phobos. Not optional.
This all needs to happen _before_ we start working on a window library
for Phobos.
Let alone a GUI.
We're mostly got problems with Cocoa. X11 bindings just need to be
changed to dynamically bound.
I think now with the new extern(Objective-C) it's a minor issue. Even
though the whole Objective-C support isn't implemented yet, I think the
current support is good enough to create bindings which a window library
can be built upon. We could keep the bindings internal to avoid chancing
the public API later when better support is implemented.
Yeah. I only mentioned it as a bigger problem then say X11 because we
already have X11 bindings. They are just statically linked. Not to
mention old.
Vs Cocoa support which requires a very "young" compiler additions.
But hey, I'm not worried. At the worse case scenario we'll keep to my
current method of using Objective-C directly and exporting a c API to be
used instead. So D side is merely a wrapper.
But yes, I like the idea of internal bindings to Cocoa. But given my
timeline for a window creation library for Phobos is middle of next
year. Lets just say I'm in no rush.