home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / ada / 3287 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1003 b 

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!spool.mu.edu!agate!dog.ee.lbl.gov!news!nosc!visicom!amstel!rlk
  2. From: rlk@VisiCom.COM (Bob Kitzberger)
  3. Newsgroups: comp.lang.ada
  4. Subject: Re: HELP! Input/Output of private types
  5. Message-ID: <rlk.721940113@amstel>
  6. Date: 16 Nov 92 18:55:13 GMT
  7. References: <Bxpwty.H8E@acsu.buffalo.edu>
  8. Sender: news@VisiCom.COM
  9. Lines: 27
  10.  
  11. kist@acsu.buffalo.edu (james e kist) writes:
  12.  
  13. >generic
  14. >    type Element is private;
  15. >package abcd
  16. >.
  17. >end abcd;
  18. >
  19. >Now, how do I do I/O on an object that is of type Element? Thanks for any
  20. >help.
  21.  
  22.  
  23.    generic
  24.        type Element is private;
  25.        with procedure Put( Item : in     Element );
  26.        with procedure Get( Item :    out Element );
  27.    package abcd is
  28.    ...
  29.        Get (Item);
  30.        Put (Item);
  31.    end abcd;
  32.    
  33.  
  34. ----------------
  35. Bob Kitzberger          VisiCom Laboratories, Inc.
  36. rlk@visicom.com         10052 Mesa Ridge Court, San Diego CA 92121 USA
  37.                         +1 619 457 2111    FAX +1 619 457 0888
  38.