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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Ada-Oriented GUI Date: Sun, 18 Mar 2018 14:33:24 +0100 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 18 Mar 2018 13:33:24 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="c0387673573113a03f9d1c10d84baabc"; logging-data="11797"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/x2L0a569vTZbC7tZRSES1XGgnSCWRF1g=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 Content-Language: en-US X-Mozilla-News-Host: snews://news.eternal-september.org:563 Cancel-Lock: sha1:XDT49/X/xNpmtVh/sBIU8QIBtAI= Xref: reader02.eternal-september.org comp.lang.ada:51059 Date: 2018-03-18T14:33:24+01:00 List-Id: 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