comp.lang.ada
 help / color / mirror / Atom feed
From: "Frank J. Lhota" <FrankLhota@rcn.com>
Subject: Re: Package Problem
Date: 1999/10/27
Date: 1999-10-28T03:03:20+00:00	[thread overview]
Message-ID: <7v8edo$4l1$1@autumn.news.rcn.net> (raw)
In-Reply-To: 7v7sjp$8q61@news.cis.okstate.edu

The problem is with the "with" clause

with large_integer_handler.variable_length_operations;

This clause implies that there is a library unit named
large_integer_handler.variable_length_operations, which is not the case.
Just cut the "with" clause and move the "use" clause to the declarative
part.

David Starner <dvdeug@x8b4e53cd.> wrote in message
news:7v7sjp$8q61@news.cis.okstate.edu...
> I've got a problem with nested packages. I'm using Mat Webb's Components,
> which has a generic package in it, with a package inside, like:
>
> generic
>     ...
> package large_integer is
>     ...
>     package Variable_Length_Operations
>     ...
>     private
>     ...
> end package
>
> and a package, large_integer_handler, which just instatates large_integer
> with reasonable values.
>
> In my program, I have
> with large_integer_handler; use large_integer_handler;
> with large_integer_handler.variable_length_operations;
> use large_integer_handler.variable_length_operations;
>
> But that doesn't work. GNAT complains about not finding
> large_integer_handler-variable_length_operations.ads. How do I access that
> inner package?
>
> --
> David Starner - dstarner98@aasaa.ofe.org






      reply	other threads:[~1999-10-27  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-10-27  0:00 Package Problem David Starner
1999-10-27  0:00 ` Frank J. Lhota [this message]
replies disabled

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