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,faf469c89f73f91d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-19 17:32:39 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news-feed.riddles.org.uk!sn-xit-03!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Matthew Heaney" Newsgroups: comp.lang.ada Subject: Re: Package Instances??? Date: Tue, 19 Feb 2002 20:37:54 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <721b6d80.0202131302.1ccce2ed@posting.google.com> <3C6BFAFC.7060902@mail.com> X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 X-Complaints-To: newsabuse@supernews.com Xref: archiver1.google.com comp.lang.ada:20155 Date: 2002-02-19T20:37:54-05:00 List-Id: "Marin David Condic" wrote in message news:a4tm89$ajg$1@nh.pace.co.uk... > Obviously, as you observe, once you start changing what the generic actually > says, the distinction between a generic package and a "class" starts > becoming more apparent. In general, I'd think it would be wise not to try to > use a generic package to represent a "class" in the way it appears to have > been intended. Its just the wrong idiom in Ada to do what a C++ class does. Yes. An Ada package is analogous to a C++ namespace, not a class. Actually, there's a straight-forward conversion from C++ to Ada: namespace N { class C { public: //... private: //... }; } //end namespace N package P is type T is private; --... private type T is record ...; --... end P;