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-20 18:32:46 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: Wed, 20 Feb 2002 11:56:12 -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> NNTP-Posting-Host: dhcp-200-133.miami.pace.co.uk X-Trace: nh.pace.co.uk 1014224174 23657 136.170.200.133 (20 Feb 2002 16:56:14 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 20 Feb 2002 16:56:14 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:20193 Date: 2002-02-20T16:56:14+00:00 List-Id: Excellent illustration. Lat time I checked though, there were several C++ compilers not supporting namespaces though - notably MSVC++, IIRC. Not involved with it at the moment, so maybe its changed. Are more C++ compilers supporting it? (It sure does overcome some of the big limitations I found with C++...) 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/ "Matthew Heaney" wrote in message news:u75v5l119fc64c@corp.supernews.com... > > 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; >