|
|
On Friday 30 March 2007 14:06:08 Richard Dale wrote:
> On Friday 30 March 2007, Andreas Pakulat wrote:
> > On 30.03.07 18:08:21, Petar Forai wrote:
> > > D bindings would be _really_ nice, but there are none and the effort
> > > needed to produce such bindings would be quite great. The GTK binding
> > > in D is via the C binding of GTK (not OO/gtkmm) afair. D supports a
> > > "native" C calling interface, though no direct support for C++ exists.
> >
> > Well, the Python bindings use plain C too for the binding code, that
> > works pretty well. Of course for those its easier because Phil Thompson
> > wrote sip - a binding generator to create Python bindings for C++ code.
> > But still, if you can come up with such a tool the binding is not that
> > hard anymore (AFAIK the Ruby bindings are done with a similar framework)
>
> Bindings are very hard, and there is a lot of work to do even once you
> written a generator like SIP. The runtime issues you have to solve are more
> difficult than it first appears. The less dynamic a language is, the harder
> it is to do the runtime, and from what I've read D doesn't have anything
> much in the way of a dynamic runtime.
>
> I don't know of any languages that allow you to call C++ directly because
> there is no standard system for C++ name mangling, and I don't think it's
> possible. The ruby bindings use a language independent dynamic runtime
> library called 'smoke' with a simple C interface. Smoke is also used by
> PerlQt, Qyoto (C#) and a binding for PHP. So it could be used for D, but
> would certainly still be a non-trivial amount of work, and I wonder if the
> likely size of the user community for D would justify another binding in
> addition to the GTK one. You would still need to generate a huge amount of
> D code that would invoke the Qt methods in the Smoke library.
>
> -- Richard
the only one I know is Objective C++
Mathieu
--
The only person who always got his work done by Friday was Robinson Crusoe.
--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/
|
|