home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / ada / 2440 < prev    next >
Encoding:
Internet Message Format  |  1992-08-25  |  923 b 

  1. Path: sparky!uunet!gumby!wupost!cs.utexas.edu!ut-emx!emx.cc.utexas.edu
  2. From: hasan@emx.cc.utexas.edu (David A. Hasan)
  3. Newsgroups: comp.lang.ada
  4. Subject: Ada9X generic formal packages
  5. Message-ID: <78322@ut-emx.uucp>
  6. Date: 24 Aug 92 15:30:20 GMT
  7. Sender: news@ut-emx.uucp
  8. Organization: UTexas Center for Space Research
  9. Lines: 24
  10.  
  11. I have a question regarding the use of generic formal
  12. packages in Ada9X.
  13.  
  14. Suppose that there already exists a package <g1> in the
  15. library and that I want to "include" this generic package
  16. in the list of generic formals for a second generic package,
  17. <g2>:
  18.  
  19.      GENERIC
  20.        ...
  21.        WITH PACKAGE p1 IS NEW g1(<>);
  22.      PACKAGE g2 IS
  23.        ...
  24.      END g2;
  25.  
  26. My question is this:
  27.  
  28. Do I have to provide a "WITH g1;" in the context clause
  29. for <g2>? 
  30.  
  31.  
  32. --| David A. Hasan   University of Texas at Austin
  33. --|                  Center for Space Research
  34. --|                  hasan@emx.cc.utexas.edu
  35.