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,e55245590c829bef X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!aioe.org!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Beginners question: Compound types, how-to? Date: Thu, 04 Nov 2010 07:11:36 +0100 Organization: Ada @ Home Message-ID: References: <86wroy58ff.fsf@gareth.avalon.lan> <86pqup5xfy.fsf@gareth.avalon.lan> <86y69d3rec.fsf@gareth.avalon.lan> <82lj5c5ecm.fsf@stephe-leake.org> <79ed13b7-4c55-40c4-9f66-e30ed94e5591@e14g2000yqe.googlegroups.com> <4cd0b0ed$0$6775$9b4e6d93@newsspool3.arcor-online.net> NNTP-Posting-Host: 4vQNEkQz8jPZLol/IaLwBQ.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: g2news1.google.com comp.lang.ada:15203 Date: 2010-11-04T07:11:36+01:00 List-Id: Le Wed, 03 Nov 2010 22:31:53 +0100, Vinzent Hoefler = a =C3=A9crit: > See, if you think hard enough, the name problem is solved: > > Attack_With (Weapon : Offensive_Weapon); > Defend_With (Weapon : Defensive_Weapon); > > Or maybe the other way around: > > Attack_With (Offensive_Weapon : Weapon); > Defend_With (Defensive_Weapon : Weapon); I don't believe these two are the same : there are two different types i= n = the first, while one single type in the second. The design is not the sa= me = (an example of how avoiding _Type can direct people to change what the = things really are=E2=80=A6 that's bad). -- = Si les chats miaulent et font autant de vocalises bizarres, c=E2=80=99es= t pas pour = les chiens.