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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.107.9.80 with SMTP id j77mr16523550ioi.138.1522005584570; Sun, 25 Mar 2018 12:19:44 -0700 (PDT) X-Received: by 2002:a9d:29d2:: with SMTP id g18-v6mr2135250otd.5.1522005584241; Sun, 25 Mar 2018 12:19:44 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!weretis.net!feeder4.news.weretis.net!news.roellig-ltd.de!open-news-network.org!peer03.am4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!199-v6no3039031itl.0!news-out.google.com!j10-v6ni3541ite.0!nntp.google.com!199-v6no3039030itl.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 25 Mar 2018 12:19:43 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2601:18f:900:f900:6600:6aff:fe37:6bdc; posting-account=3pYsyQoAAACcI-ym7XtMOI2PDU8gRZS5 NNTP-Posting-Host: 2601:18f:900:f900:6600:6aff:fe37:6bdc References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <9a7f0d49-d8a9-44e5-ab38-28eb70d2d779@googlegroups.com> Subject: Re: Ada-Oriented GUI From: Andrew Shvets Injection-Date: Sun, 25 Mar 2018 19:19:44 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 2469 X-Received-Body-CRC: 1554460896 Xref: reader02.eternal-september.org comp.lang.ada:51203 Date: 2018-03-25T12:19:43-07:00 List-Id: On Sunday, March 18, 2018 at 9:33:26 AM UTC-4, Jeffrey R. Carter wrote: > I've written on here before that I think the traditional > register-callbacks-and-call-a-procedure GUI interface is a hack only suitable > for sequential languages, and attempted to describe my idea of how a GUI for a > concurrent language like Ada should work. Some have expressed the opinion that > such an interface is not possible. > > I've now written a very minimal GUI interface embodying my concepts. It > implements text boxes and buttons, as that is the minimum for an example that > actually does something faintly interesting. For an example, I've used the > Random_Int demo from Gnoga. > > I've also made a quick and dirty implementation of the interface on top of > Gnoga, and a version of Random_Int using the interface. Though the Gnoga version > of Random_Int is very simple and fairly easy to understand, this version is > easier to understand. > > Those interested can find Ada_GUI at > > https://github.com/jrcarter/Ada_GUI > > Those who like programming by extension won't like it. > > -- > Jeff Carter > "Insufficient laughter--that's grounds for divorce." > Play It Again, Sam > 126 I agree that it's a "hack". This seemed like a forced solution for the problem at hand. I'll have a look at your implementation.