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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e276c1ed16429c03 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!news4.google.com!feeder.news-service.com!94.75.214.39.MISMATCH!aioe.org!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Ada is getting more popular! Date: Sun, 31 Oct 2010 07:42:56 +0100 Organization: Ada @ Home Message-ID: References: <8732ea65-1c69-4160-9792-698c5a2e8615@g13g2000yqj.googlegroups.com> <4cc60705$0$23764$14726298@news.sunsite.dk> <4cc6753c$0$23756$14726298@news.sunsite.dk> <4cc71e08$0$23758$14726298@news.sunsite.dk> <4cc87d7a$0$23755$14726298@news.sunsite.dk> <4cc912e1$0$23761$14726298@news.sunsite.dk> NNTP-Posting-Host: gHYtk+mhCrTAX6LNXybaBQ.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: Opera Mail/10.63 (Win32) Xref: g2news2.google.com comp.lang.ada:15981 Date: 2010-10-31T07:42:56+01:00 List-Id: Le Sun, 31 Oct 2010 06:02:20 +0100, Yannick Duch=C3=AAne (Hibou57) = a =C3=A9crit: > May an idea would be kind of proxies : define an abstract type with Si= ze = > + Coordinate, another type with Move. Dialog_Box and peers will not = > inherit from that, but instead will provide a reference to objects of= = > these types, as derived types. Let call the first type Positioned and = = > the second one Movable. We may have a Dialog_Box which could return a = = > reference to a Dialog_Box_Positioned and a Dialog_Box_Movable. I am silly : I was just talking about interfaces (reinvented the wheel, = I = only attempted to use interface for =E2=80=9Csynchronized interface=E2=80= =9D so far, so = did not realized immediately). So what about an Ada profile where we would derive from interface only ?= = Tagged type as implementation of interfaces only, and disallow derivatio= n = from tagged. Could be a good Ada profile ? Do someone see a flaw to be reported here ? -- = Si les chats miaulent et font autant de vocalises bizarres, c=E2=80=99es= t pas pour = les chiens.