What keeps you from using gtkd or dlangui
Johannes Pfau via Digitalmars-d
digitalmars-d at puremagic.com
Tue Oct 6 08:36:25 PDT 2015
Am Tue, 06 Oct 2015 13:41:48 +0000
schrieb Jonathan M Davis <jmdavisProg at gmx.com>:
> On Tuesday, 6 October 2015 at 13:38:28 UTC, Gerald wrote:
> > My limited experience with gtkd has been very positive, while
> > the documentation is primarily reference material it's not very
> > difficult to figure out how things work with GTK based on
> > examples from C or pyGTK. I do use Linix and Gnome Shell so I'm
> > fully wedded to the Gnome HIG so no issues for me in terms of
> > using GTK as a toolkit since it's native to my environment.
>
> A major advantage to D is that you can declare bindings to C
> libraries such that using them in D is pretty much identical to
> using them in C. Having more D-like wrappers around such bindings
> can be really nice, but when you need to know how to use the
> bindings, all you have to do is look up how you use those
> functions in C, and you know how to use them in D. The only major
> hurdle is having the bindings in the first place. But once you
> have them, there isn't much reason to program in C rather than D.
> :)
>
> - Jonathan M Davis
True, but you wouldn't really want to use the GTK/GLIB C API in D ;-)
GTKd is a complete class-based wrapper, although mainly auto-generated.
More information about the Digitalmars-d
mailing list