home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / ada / 3282 < prev    next >
Encoding:
Text File  |  1992-11-16  |  1.1 KB  |  26 lines

  1. Newsgroups: comp.lang.ada
  2. Path: sparky!uunet!gumby!wupost!cs.utexas.edu!convex!sercely
  3. From: sercely@convex.com (Ron Sercely)
  4. Subject: Re: HELP! Input/Output of private types
  5. Message-ID: <1992Nov16.161124.4781@convex.com>
  6. Sender: usenet@convex.com (news access account)
  7. Nntp-Posting-Host: cvxcs.cs.convex.com
  8. Organization: CONVEX Computer Corporation, Richardson, Tx., USA
  9. References: <Bxpwty.H8E@acsu.buffalo.edu>
  10. Date: Mon, 16 Nov 1992 16:11:24 GMT
  11. X-Disclaimer: This message was written by a user at CONVEX Computer
  12.               Corp. The opinions expressed are those of the user and
  13.               not necessarily those of CONVEX.
  14. Lines: 10
  15.  
  16.  
  17. You must add a subprogram specification to the generic declration that
  18. will actually do the I/O.  You create this I/O procedure in the normal
  19. way, then instantiate the generic with this procedure.  
  20.  
  21. If you are going to have LOTS of instantiations this indeed can be a pain,
  22. because you will have to create the I/O procedure for each instantiation.
  23. This is an example where and Ada pre-processor may be useful to you.
  24.  
  25. Ron Sercely
  26.