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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Ada needs Qt(5) bindings Date: Wed, 10 Jul 2013 13:50:49 +0100 Organization: A noiseless patient Spider Message-ID: References: <20130709201738.1609dce5@atmarama.noip.me> <20130710074954.317716cc@atmarama.noip.me> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx05.eternal-september.org; posting-host="c8504a89c76ea11bda6664e6198ae3cd"; logging-data="31513"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/a8zNvBGNSTa4+t/yCHT/Nhuyc9DcdIpE=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) Cancel-Lock: sha1:ub77RPBBcRgQYhuf2PROCTDs4p4= sha1:QqhuDmpCTRh83F25x0S+5j6Ncts= Xref: news.eternal-september.org comp.lang.ada:16263 Date: 2013-07-10T13:50:49+01:00 List-Id: Gour writes: > On Tue, 09 Jul 2013 21:00:48 +0100 > Simon Wright wrote: > >> This approach has always seemed a possibility to me. The problem I >> found with the equivalent in Tcl/Tk was that there seemed to be no >> way of making a callback from the Ada to the Tcl. > > Maybe I wouldn't need callbacks, but still wonder how much would > Python spoil type-safety of the whole app? You'd need to validate the passed values on entry to the Ada part, just as with any external input. I expect the same would apply to QtAda.