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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,5af5c381381ac5a7 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder.news-service.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!.POSTED!not-for-mail From: "Alex R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: Ada requires too much typing! Followup-To: comp.lang.ada Date: Thu, 10 Jun 2010 15:47:49 +0200 Organization: A noiseless patient Spider Message-ID: References: <03f84a0a-e070-43a9-9b68-920345f64f94@r27g2000yqb.googlegroups.com> <1c704c1e-1b2e-427f-ae0e-3b2a0f976c7c@y4g2000yqy.googlegroups.com> <10855f68-76a1-4600-ba65-464dab6c6274@w12g2000yqj.googlegroups.com> <7cb03fe5-a65c-4f0b-bd9d-a071b905aad1@y11g2000yqm.googlegroups.com> <4c10baa2$0$6974$9b4e6d93@newsspool4.arcor-online.net> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit Injection-Date: Thu, 10 Jun 2010 13:47:48 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="w8g++bW4v3KH0+SqtoCNSw"; logging-data="8148"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18WusQXH1VoqGQSFKma0MO8" User-Agent: KNode/4.4.3 Cancel-Lock: sha1:zUhjvkxUte4MzPUwjDgiIFsMYGg= Xref: g2news2.google.com comp.lang.ada:12560 Date: 2010-06-10T15:47:49+02:00 List-Id: Georg Bauhaus wrote: > On 10.06.10 10:57, Vadim Godunko wrote: >> On Jun 10, 11:20 am, AdaMagica wrote: >>> On 10 Jun., 08:34, Vadim Godunko wrote: >>> >>>> I want to known more about how to use OOP in Ada without access types! >>> >>> type Element is tagged ... >>> subtype Any_Element is Element'Class; >>> >>> procedure Show (E: Element); >>> >> Thank you for example, this is example of dispatching but not use of >> Ada in heavy OOP style of programming. :-) > > Will it, in theory, be possible to write a Qt-like library > in Ada such that client programs declare variables like > > W : Some_Window'Class := Some_Lib_Pack.Make (Typ => Some_Id); > > That is, programs do not use access Some_Window'Class? Interesting question, because e.g. in GtkAda I found the use of renamed access types most confusing at first. I guess Vadim is the man to answer about Qt + Ada :)