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,FREEMAIL_FROM autolearn=ham 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 08:48:37 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.visi.com!hermes.visi.com!uunet!ash.uu.net!spool0900.news.uu.net!reader0900.news.uu.net!not-for-mail Message-ID: <3C7676AF.9020404@mail.com> Date: Fri, 22 Feb 2002 11:49:51 -0500 From: Hyman Rosen User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.8+) Gecko/20020213 X-Accept-Language: en-us MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Package Instances??? References: <721b6d80.0202131302.1ccce2ed@posting.google.com> <3C6BFAFC.7060902@mail.com> <3C73F5F6.7050704@mail.com> <3C7487D6.5060603@mail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Organization: KBC Financial Products Cache-Post-Path: master.nyc.kbcfp.com!unknown@mosquito.nyc.kbcfp.com X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/) NNTP-Posting-Host: 204.253.250.10 X-Trace: 1014396516 reader0.ash.ops.us.uu.net 26461 204.253.250.10 Xref: archiver1.google.com comp.lang.ada:20257 Date: 2002-02-22T11:49:51-05:00 List-Id: Depending on how one builds it, a C++ class or class template can fulfill the role of an Ada package, record, or tagged type. That's just the way it is. To examine equivalent capabilities in the two languages, you *must* use a C++ class to emulate an Ada package, otherwise there will be all sorts of things that you can do in Ada that won't be possible in C++. 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.