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 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-16 22:48:15 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!dispose.news.demon.net!news.demon.co.uk!demon!pogner.demon.co.uk!zap!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Package Instances??? Date: 15 Feb 2002 19:20:11 +0000 Organization: Pushface Message-ID: References: <721b6d80.0202131302.1ccce2ed@posting.google.com> <3C6BFAFC.7060902@mail.com> NNTP-Posting-Host: localhost X-NNTP-Posting-Host: pogner.demon.co.uk:158.152.70.98 X-Trace: news.demon.co.uk 1013928445 nnrp-02:1256 NO-IDENT pogner.demon.co.uk:158.152.70.98 X-Complaints-To: abuse@demon.net NNTP-Posting-Date: 15 Feb 2002 19:20:11 GMT X-Newsreader: Gnus v5.7/Emacs 20.7 Xref: archiver1.google.com comp.lang.ada:20089 Date: 2002-02-15T19:20:11+00:00 List-Id: Hyman Rosen writes: > Marin David Condic wrote: > > Sounds like you're trying to treat a package as if it was a C++ class and > > you're trying to create a new instance of it because it presumably holds a > > set of variables you want to duplicate? First, as you discovered, you can't > > do that. Second, it isn't really the right idiom for Ada. > > Wouldn't it work by just making the package generic? But different instantiations would be different "classes". I guess that depends on what the generic actually says.