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/25 Message-ID: <4t7vet$ot8@newsbf02.news.aol.com>#1/1 X-Deja-AN: 170342850 sender: root@newsbf02.news.aol.com references: organization: America Online, Inc. (1-800-827-6364) newsgroups: comp.lang.ada Date: 1996-07-25T00:00:00+00:00 List-Id: In article , dewar@cs.nyu.edu (Robert Dewar) writes: >People who have learned to be 100% allergic to USE in Ada 83 will find >some discomfort here, but that's something they bring upon themselves. >The idea behind disallowing USE clauses is that it is a GOOD THING if >it is made VERY clear at the source level EXACTLY where the subprogram >being called is defined. BUT! the whole idea of dynamic dispatching >is to make absolutely sure that you can NOT tell at the source level >where the subprogram being called is declared. > >There is no clash between dynamic dispatching and the design of Ada, there >is a clash between dynamic dispatching and an insistence on never using >the USE clause, and that is really what Mitch is pointing out. Not to mention that without the USE clause, the visibility you get is misleading. Yep, Robert, I do believe you "have it surrounded". Just out of curiosity, though. Somebody said that WG9 considered making all operators obsolete (addressing a slightly different issue). I was wondering if WG9 considered do what I misunderstood Robert Eachus to be implying, namely, make "use type" apply also to primitive subprograms of a tagged type? 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"