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