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.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI,REPLYTO_WITHOUT_TO_CC 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-13 13:51:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!fr.usenet-edu.net!usenet-edu.net!enst!enst.fr!not-for-mail From: Eric Merritt Newsgroups: comp.lang.ada Subject: Re: Package Instances??? Date: Wed, 13 Feb 2002 13:50:06 -0800 (PST) Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: avanie.enst.fr 1013637063 99244 137.194.161.2 (13 Feb 2002 21:51:03 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Wed, 13 Feb 2002 21:51:03 +0000 (UTC) Return-Path: In-Reply-To: <721b6d80.0202131302.1ccce2ed@posting.google.com> Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:19978 Date: 2002-02-13T13:50:06-08:00 Yates, You may actually be getting packages mixed up with classes as used in other languages. Packages are not so much a coherent whole as a collection of types and variables that you may use in your client program. So although you would not do p1 : My_Package := new My_Package; you would do something like p1: My_Package.My_Type : Create_New_My_Type; (If there was a function named Create_New_My_Type in the package). I would suggest you hit some of the excellent tutorials available to get you over this hump. --- Yates wrote: > I am new to Ada. I'd like to know if it is possible > to create multiple > instances of a package. For example, if I have a > package 'My_Package', can > I do something like: > > p1 : My_Package := new My_Package > p2 : My_Package := new My_Package > ..... > > I tried this and didn't work. Is there other ways to > do it? > > Thanks > > Yates > _______________________________________________ > comp.lang.ada mailing list > comp.lang.ada@ada.eu.org > http://ada.eu.org/mailman/listinfo/comp.lang.ada __________________________________________________ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com