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.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ad62d6b425bebfec X-Google-Attributes: gid103376,public From: jamess1889@aol.com (JamesS1889) Subject: Re: "use" clauses and Ada 95 OOP Date: 1996/07/23 Message-ID: <4t33ro$l4n@newsbf02.news.aol.com>#1/1 X-Deja-AN: 170339947 sender: root@newsbf02.news.aol.com references: organization: America Online, Inc. (1-800-827-6364) newsgroups: comp.lang.ada Date: 1996-07-23T00:00:00+00:00 List-Id: In article , bobduff@world.std.com (Robert A Duff) writes: >Your earlier impression was correct. "Use type" only works for >(primitive) operators, like "&", "+", etc. It does not work for >operations called "func" or whatever. Then I'm confused about something. See below. Meanwhile... >An earlier version of Ada 9X proposed to make primitive operators >automatically visible -- sort of as if "use type" were always there by >magic. However, this would have been upward incompatible in some rare >cases. The "use type" feature was invented as a compromise. I'm amazed they did think of it - good for them. But that's not what I was talking about. In article , jsa@alexandria (Jon S Anthony) writes: >A use_type clause only gives "direct" visibility to primitive _operators_ >of the type: RM 8.4(8). OK. So then would someone tell me what the following meant: In article , eachus@spectre.mitre.org (Robert I. Eachus) writes: > My rule is to always "use type" dispatching types. The names you >no longer have to qualify are the ones where the qualification would >be misleading. Did Robert mean what I thought he meant (in which case you are saying he is wrong), or did he mean something else? Enquiring minds want to know... James Squire mailto:ja_squire@csehp3.mdc.com MDA Avionics Tools & Processes McDonnell Douglas Aerospace http://www.mdc.com Opinions expressed here are my own and NOT my company's "Only one Earth Captain has ever survived battle with a Minbari fleet. He is behind me. You are in front of me. If you value your lives, be somewhere else!" -- Delenn, "Severed Dreams"