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-20 21:35:22 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!jfk3-feed1.news.digex.net!dca6-feed2.news.digex.net!intermedia!newsfeed1.cidera.com!Cidera!cyclone1.gnilink.net!spamfinder.gnilink.net!nwrddc01.gnilink.net.POSTED!53ab2750!not-for-mail Message-ID: <3C7487D6.5060603@mail.com> From: Hyman Rosen User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:0.9.8+) Gecko/20020218 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> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 21 Feb 2002 05:35:20 GMT NNTP-Posting-Host: 162.83.249.233 X-Complaints-To: business-support@verizon.com X-Trace: nwrddc01.gnilink.net 1014269720 162.83.249.233 (Thu, 21 Feb 2002 00:35:20 EST) NNTP-Posting-Date: Thu, 21 Feb 2002 00:35:20 EST Xref: archiver1.google.com comp.lang.ada:20195 Date: 2002-02-21T05:35:20+00:00 List-Id: Matthew Heaney wrote: > "Hyman Rosen" wrote > >>Given that C++ classes can have arbitrary >>things defined in them (types, static functions, constants, etc.) >>considering them as an analogue of Ada packages is not wrong. > > But it is wrong if your purpose is to implement a type, so that you can > declare objects, which you can pass to subprograms, etc. The fact that in > C++ you can declare things inside the class is irrelevent. But my purpose isn't to implement a type, it's to find a C++ analogue for Ada packages. C++ namespaces are useless for anything except what the name implies, namely establishing a namespace.