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,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,56a29380a99bf0cc X-Google-Attributes: gid103376,public From: jsa@organon.com (Jon S Anthony) Subject: Re: package scope Date: 1996/06/19 Message-ID: #1/1 X-Deja-AN: 161057641 sender: news@organon.com (news) references: <01bb5da3.995bc000$33668acd@iris.gomontana.com> organization: Organon Motives, Inc. newsgroups: comp.lang.ada Date: 1996-06-19T00:00:00+00:00 List-Id: In article <01bb5da3.995bc000$33668acd@iris.gomontana.com> "Darrin" writes: > Can any of you help on this one? I have a generic package for link lists > and a package for reading and displaying a group of records from a text > file. What I have done is instantiate the linked list in my record > package and then USE'd the record package in my main procedure. Problem > is, the main procedure won't recognize a variable of a type declared in > the generic package without using the dot notation. This seems to be a > redundant necessity, since I am USE'ing the pakage. Thanks for any and > all help. If I understand correctly, you have something like: with List_Generic; package Rec is ... package P is new List_Generic(...); ... end Rec; with Rec; use Rec; procedure Main is ... -- have to use P.Blah to access stuff in P -- Well, that is because you have not _use_ed -- P!: use P; -- Now just use Blah: -- Blah(...); end Main; /Jon -- Jon Anthony Organon Motives, Inc. 1 Williston Road, Suite 4 Belmont, MA 02178 617.484.3383 jsa@organon.com