comp.lang.ada
 help / color / mirror / Atom feed
* package scope
@ 1996-06-18  0:00 Darrin
  1996-06-19  0:00 ` Jon S Anthony
  0 siblings, 1 reply; 2+ messages in thread
From: Darrin @ 1996-06-18  0:00 UTC (permalink / raw)



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.

Darrin




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: package scope
  1996-06-18  0:00 package scope Darrin
@ 1996-06-19  0:00 ` Jon S Anthony
  0 siblings, 0 replies; 2+ messages in thread
From: Jon S Anthony @ 1996-06-19  0:00 UTC (permalink / raw)



In article <01bb5da3.995bc000$33668acd@iris.gomontana.com> "Darrin" <darrin@gomontana.com> 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





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-06-19  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-06-18  0:00 package scope Darrin
1996-06-19  0:00 ` Jon S Anthony

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox