home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / ada / 2408 < prev    next >
Encoding:
Internet Message Format  |  1992-08-22  |  1.0 KB

  1. Path: sparky!uunet!gatech!bloom-beacon!eru.mt.luth.se!lunic!sunic!aun.uninett.no!alf.uib.no!eik.ii.uib.no!sahni
  2. From: sahni@eik.ii.uib.no (Sahni Daljeet Singh)
  3. Newsgroups: comp.lang.ada
  4. Subject: ADA question
  5. Keywords: Strings, Packages
  6. Message-ID: <1992Aug23.102056.19487@alf.uib.no>
  7. Date: 23 Aug 92 10:20:56 GMT
  8. Sender: usenet@alf.uib.no (Bergen University Newsaccount)
  9. Organization: Institute of Informatics, University of Bergen, Norway
  10. Lines: 14
  11.  
  12. I am beginning to learn Ada and am stuck at a point. The question is as
  13. follows:
  14.  
  15. I have a function in a package A which returns string. I am using
  16. that function in another package B and try to give the value returned
  17. by that function to a variable (which has been declared in package B).
  18. The variable is of type string (1 .. max) initialised to empty string.
  19. My program simple raises an exception. 
  20. Could it be that the array size is different for the variable and the value
  21. returned by the function. The function can return a string of different
  22. sizes. Can somebody give help me out?
  23.  
  24. Thanks.
  25. Daljeet.
  26.