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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1116ece181be1aea X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-23 01:24:08 PST Path: archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!wn14feed!wn13feed!worldnet.att.net!204.127.198.204!attbi_feed4!attbi.com!sccrnsc01.POSTED!not-for-mail Message-ID: <3F70021A.2010305@attbi.com> From: "Robert I. Eachus" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Is the Writing on the Wall for Ada? References: <568ede3c.0309160929.1d0d3d95@posting.google.com> <3F67AFB9.7040001@attbi.com> <3F6F0841.60607@attbi.com> <1064244399.683441@master.nyc.kbcfp.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 24.34.139.183 X-Complaints-To: abuse@comcast.net X-Trace: sccrnsc01 1064305178 24.34.139.183 (Tue, 23 Sep 2003 08:19:38 GMT) NNTP-Posting-Date: Tue, 23 Sep 2003 08:19:38 GMT Organization: Comcast Online Date: Tue, 23 Sep 2003 08:19:39 GMT Xref: archiver1.google.com comp.lang.ada:42781 Date: 2003-09-23T08:19:39+00:00 List-Id: Hyman Rosen wrote: > So, does Ada have an equivalent to this? Remember, you do not > control IFoo, IBar, the container type, or the implementation > of the type which is trying to be the combination of an IFoo > and an IBar. The equivalent in Ada is: if Object in IBar'Class then... More to the point: if Object in IBar'Class and Object in IFoo'Class then... may be true. if Object in IBar and Object in IFoo then... Will never be true unless IBar is a renaming or subset of IFoo or vice-versa. Every object is a member of exactly one specific (base) type, but it may be a member of many classwide types. -- Robert I. Eachus Ryan gunned down the last of his third white wine and told himself it would all be over in a few minutes. One thing he'd learned from Operation Beatrix: This field work wasn't for him. --from Red Rabbit by Tom Clancy.