From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL,HTML_MESSAGE autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id E411CBC6B for ; Fri, 12 Oct 2007 22:23:14 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah4FAEd0D0dCm3xr/2dsb2JhbACCPTU X-IronPort-AV: E=Sophos;i="4.21,268,1188770400"; d="scan'208,217";a="17925632" Received: from www.janestcapital.com (HELO smtp.janestcapital.com) ([66.155.124.107]) by mail4-smtp-sop.national.inria.fr with ESMTP; 12 Oct 2007 22:23:14 +0200 Received: from [172.25.129.161] [38.96.172.125] by janestcapital.com with ESMTP (SMTPD-9.10) id A7B005F0; Fri, 12 Oct 2007 16:23:12 -0400 Message-ID: <470FD7B0.1090601@janestcapital.com> Date: Fri, 12 Oct 2007 16:23:12 -0400 From: Brian Hurt User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dario Teixeira Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] A labltk book? References: <456409.56385.qm@web54603.mail.re2.yahoo.com> In-Reply-To: <456409.56385.qm@web54603.mail.re2.yahoo.com> Content-Type: multipart/alternative; boundary="------------030009050401070002070905" X-Spam: no; 0.00; labltk:01 ocaml:01 bindings:01 gtk:01 gtk:01 ocaml:01 overloading:01 bindings:01 overloading:01 wrote:01 wrote:01 caml-list:01 explicitly:02 explicitly:02 match:02 This is a multi-part message in MIME format. --------------030009050401070002070905 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Dario Teixeira wrote: >>Probably. Its widgets are also much nicer looking, and apps written >>with it don't look jarringly out of place on a modern desktop the way >>Tk apps do. (All IMO, of course.) >> >> > >Hi, > >Still on the subject of toolkits, is there a reason why there aren't any >OCaml bindings for Qt? I mean, is it simply because no one ever bothered >to implement one, or are there license incompatibility issues? > >I have used both Qt and Gtk before, and in my opinion, not only does >Qt's elegance give it an edge over Gtk, it also feels like it would be >a better match to OCaml. > > The problem as I understand things is that C++ doesn't play nice with any language that is not C++ or explicitly designed to work with C++ (cue Skaller). This is especially true if you use the fancy features of C++ like templates and operator overloading, which Qt does. Which makes it much easier to use in C++, but much harder to bind to any other language. Note that this is true of all languages- it'd be a trick to write an Ocaml to Swing binding as well. Brian --------------030009050401070002070905 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Dario Teixeira wrote:
Probably.  Its widgets are also much nicer looking, and apps written
with it don't look jarringly out of place on a modern desktop the way
Tk apps do.  (All IMO, of course.)
    

Hi,

Still on the subject of toolkits, is there a reason why there aren't any
OCaml bindings for Qt?  I mean, is it simply because no one ever bothered
to implement one, or are there license incompatibility issues?

I have used both Qt and Gtk before, and in my opinion, not only does
Qt's elegance give it an edge over Gtk, it also feels like it would be
a better match to OCaml.
  

The problem as I understand things is that C++ doesn't play nice with any language that is not C++ or explicitly designed to work with C++ (cue Skaller).  This is especially true if you use the fancy features of C++ like templates and operator overloading, which Qt does.  Which makes it much easier to use in C++, but much harder to bind to any other language.

Note that this is true of all languages- it'd be a trick to write an Ocaml to Swing binding as well.

Brian

--------------030009050401070002070905--