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, LOTS_OF_MONEY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,95971bf29a745ff4 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-14 16:45:26 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news-x2.support.nl!news.csl-gmbh.net!newsfeed01.sul.t-online.de!t-online.de!unlisys!news.snafu.de!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 instance??? Date: Thu, 14 Feb 2002 09:41:42 -0500 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: References: NNTP-Posting-Host: dhcp-200-133.miami.pace.co.uk X-Trace: nh.pace.co.uk 1013697703 16230 136.170.200.133 (14 Feb 2002 14:41:43 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 14 Feb 2002 14:41:43 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:20030 Date: 2002-02-14T14:41:43+00:00 List-Id: "Steve Doiel" wrote in message news:fFFa8.54055$AV5.312647@rwcrnsc51.ops.asp.att.net... > > And then you can define: > > p1 is new My_Package; > p2 is new My_Package; > Syntax check: Should be "package p1 is new My_Package;" - but see below. > Which will create two instances of a My_Package. > I don't know your background, but if you have C++ for comparison a generic > in Ada is kind of like a template in C++, not an object. > I strongly suspect from the way the question was stated that Mr. Yates (first or last name?) was trying to duplicate what can be done with a C++ class - that is, have a bunch of variables bundled together with some operations and make several instances of the set of variables. While, yes, you *can* get a similar effect using generics - that doesn't seem to be what is being called for. I'd suggest that generics best be left out of it for the time being because its a little tricky for a newbie. It would help if we got a little better description of what the desired behavior is so we can suggest the proper Ada idiom for getting there. 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/