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,e55245590c829bef X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!npeer01.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: Beginners question: Compound types, how-to? 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> Date: Thu, 04 Nov 2010 01:25:21 -0400 Message-ID: <82k4kt4q4e.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (windows-nt) Cancel-Lock: sha1:/KWgpjX/odRMcTW+KpAY6++l/hY= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: cf8784cd243a9e029e66131176 Xref: g2news2.google.com comp.lang.ada:16169 Date: 2010-11-04T01:25:21-04:00 List-Id: "Vinzent Hoefler" writes: > On Wed, 03 Nov 2010 22:19:03 +0100, Simon Wright wrote: > >> "Vinzent Hoefler" writes: >> >>> On Wed, 03 Nov 2010 01:46:37 +0100, Georg Bauhaus wrote: >>> >>>> Please don't mistake this suggestion to be in favor >>>> of separate namespaces for types and other things. >>> >>> Not that this would be a problem: >>> >>> Weapon_Procedures.Attack (Weapon : Weapon_Types.Weapon); >> >> But why would you want to attack a weapon? >> >> Well, to be fair, that's what point-defence anti-missile systems do, I >> suppose; I definitely had the 'Using' use case in mind, though! > > 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); Once again, two solutions. How am I supposed to choose between them? -- -- Stephe