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: g2news1.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Ada requires too much typing! 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> Date: Fri, 11 Jun 2010 05:14:38 -0400 Message-ID: <82eigend6p.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (windows-nt) Cancel-Lock: sha1:exgffaIJA0i3WufYElpK6xDnKAo= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: 108dd4c11fe88e197caa707526 Xref: g2news1.google.com comp.lang.ada:11636 Date: 2010-06-11T05:14:38-04:00 List-Id: Georg Bauhaus writes: > 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? No. Because the underlying C++ uses pointers, so the Ada has to as well. -- -- Stephe