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=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,faf469c89f73f91d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-22 18:40:01 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!psinet-eu-nl!psiuk-p4!uknet!psiuk-p3!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: Package Instances??? Date: Fri, 22 Feb 2002 12:22:02 -0500 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: References: <721b6d80.0202131302.1ccce2ed@posting.google.com> <3C6BFAFC.7060902@mail.com> <3C73F5F6.7050704@mail.com> <3C7487D6.5060603@mail.com> <3C7676AF.9020404@mail.com> NNTP-Posting-Host: dhcp-200-133.miami.pace.co.uk X-Trace: nh.pace.co.uk 1014398522 11194 136.170.200.133 (22 Feb 2002 17:22:02 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 22 Feb 2002 17:22:02 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:20280 Date: 2002-02-22T17:22:02+00:00 List-Id: O.K. But please take a moment to recall that I never said that a C++ class was "just like" an Ada tagged type. I've been stating consistently that you can't presume that a feature of Language X is going to have an exact parallel in Language Y. I wouldn't make the claim that a C++ class and an Ada tagged type are plug compatible. They both have their own semantics that aren't going to mirror-image each other and attempting to force them to be the same is a mistake. What I *am* claiming is that if you want to do something similar to a C++ class in Ada, that attempting to do it with a package is going to lead to disappointing results. Using a package in conjunction with a tagged type is the correct idiom in Ada for representing a "class" (general concept - not C++ class). When comparing C++ and Ada, it really is important to remember that you can get the same end results from either language, but you can't necessarily get those results in an identical manner. MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com Web: http://www.mcondic.com/ "Hyman Rosen" wrote in message news:3C7676AF.9020404@mail.com... > > It is simplistic and wrong to argue that a C++ class is just > like an Ada tagged type. That just is not how classes are used > in modern C++. It may appear to be cobbled together because of > the C heritage, and because a lot of the idioms were discovered > late in the game, but the non-tagged-type usages are at least > as important and useful as the OO stuff. >