home *** CD-ROM | disk | FTP | other *** search
- From: stt@spock.camb.inmet.com
- Date: 28 Aug 1992 21:43 EDT
- Newsgroups: comp.lang.ada
- Subject: Re: Ada9X generic formal packages
- Message-ID: <20600140@spock>
- Path: sparky!uunet!noc.near.net!inmet!inmet!spock!stt
- Nf-ID: #R:ut-emx.uucp:78322:spock:20600140:000:997
- Nf-From: spock.camb.inmet.com!stt Aug 28 21:43:00 1992
- References: <78322@ut-emx.uucp>
- Lines: 39
-
-
-
- In article <78322@ut-emx.uucp>
- hasan@emx.cc.utexas.edu (David A. Hasan) writes:
-
- >I have a question regarding the use of generic formal
- >packages in Ada9X.
- >
- >Suppose that there already exists a package <g1> in the
- >library and that I want to "include" this generic package
- >in the list of generic formals for a second generic package,
- ><g2>:
- >
- > GENERIC
- > ...
- > WITH PACKAGE p1 IS NEW g1(<>);
- > PACKAGE g2 IS
- > ...
- > END g2;
- >
- >My question is this:
- >
- >Do I have to provide a "WITH g1;" in the context clause
- >for <g2>?
-
- Yes. The name of another library unit is never visible unless
- it is "with"ed. By the way, it wouldn't surprise me if
- an example in the Ada 9X Mapping Rationale left off such a "with"
- clause.
-
- >--| David A. Hasan University of Texas at Austin
- >--| Center for Space Research
- >--| hasan@emx.cc.utexas.edu
-
- S. Tucker Taft stt@inmet.com
- Ada 9X Mapping/Revision Team
- Intermetrics, Inc.
- Cambridge, MA 02138
-
-