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-19 16:27:13 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: Tue, 19 Feb 2002 09:08:07 -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 1014127689 10864 136.170.200.133 (19 Feb 2002 14:08:09 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 19 Feb 2002 14:08:09 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:20149 Date: 2002-02-19T14:08:09+00:00 List-Id: In the simplest case where the generic package had no generic parameters and only a collection of data objects & subprograms, it would look very similar to a C++ "class" in many respects. The important part being that it would only *look* like a C++ class. Semantically the whole analogy starts to fall apart once you start picking at the loose threads. 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. 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/ "Simon Wright" wrote in message news:x7v8z9u7dsk.fsf@smaug.pushface.org... > > But different instantiations would be different "classes". I guess > that depends on what the generic actually says.