From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8b7e315279c3f417 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.66.78.70 with SMTP id z6mr187858paw.5.1355851508563; Tue, 18 Dec 2012 09:25:08 -0800 (PST) Path: s9ni52021pbb.0!nntp.google.com!news.glorb.com!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Ada Library, called, returns and continues ? Date: Tue, 18 Dec 2012 18:25:05 +0100 Organization: cbb software GmbH Message-ID: <1a69phv3aet5u$.1ejus4i3ca9h1$.dlg@40tude.net> References: <5ced9166-5a29-4ad2-8270-6d24ddd0d0a1@googlegroups.com> <1rz66cdo8v1hv.j9eyg9eqqide$.dlg@40tude.net> <87db4d95-56ce-4254-8031-7bbbea515ff3@googlegroups.com> <3bb4c9f9-7317-46c2-8ddf-a80a6706ce65@googlegroups.com> <6f3c34d9-504a-494c-9157-2cf2649e4776@googlegroups.com> <1i2sghp4ue0mm.1kozrtpxq33n1.dlg@40tude.net> <1e0o0otix7lpu$.sw1iytsyjxg2.dlg@40tude.net> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: 6/SyjDFvQ5V7ZR2+GYgbDQ.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-12-18T18:25:05+01:00 List-Id: On Tue, 18 Dec 2012 08:14:20 -0800 (PST), Patrick wrote: > Yes we can make meta widgets in Ada-GTK but adding a lower level widget > would likely involve C with Ada-GTK. Not at all. C is not required for adding new widgets. You can create composite widgets and, surprise, you can add new Ada proxies (Gtk_XXX_Record types) to Gtk widgets missing in GtkAda without writing a single line in C. For example, GtkAda contributions, which purpose is largely mainly just this, does not have *any* C code. > If all the widgets were coded in Ada > and the primitives in the C/C++ core were nicely wrapped and isolated, > then a new programmer could just learn Ada and not have to worry about > C/C++. Well, certainly it would be very nice to have 100% Ada cross-system graphical framework. The problem is that Ada community is far too small to accomplish such a Mammut task. Furthermore, there is no chance a firm would develop it as commercial product. Because you cannot make any money selling general-purpose libraries. This market was ruined decades ago. > Again I have very limited experience with threading but I am > guessing that if certain widgets were also protected, it would make > writing a multi-threading GUI APP much nicer. It is rather a long story. In short yes, Ada's tasking primitives could help making GUI interfaces simpler. But there are many problems to solve, like that task and protected types are not tagged, lack of multiple inheritance to name few. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de