From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e07818d50a32cdd7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-05 08:26:19 PST Path: archiver1.google.com!news2.google.com!newsfeed.google.com!newsfeed.stanford.edu!feed.textport.net!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: <60OS6.3835$v4.183613@www.newsranger.com> <3B1CC1FE.304BF00E@earthlink.net> Subject: Re: Constraint error? Message-ID: X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Tue, 05 Jun 2001 11:22:11 EDT Organization: http://www.newsranger.com Date: Tue, 05 Jun 2001 15:22:11 GMT Xref: archiver1.google.com comp.lang.ada:8172 Date: 2001-06-05T15:22:11+00:00 List-Id: In article <3B1CC1FE.304BF00E@earthlink.net>, Marc A. Criley says... > >Ted Dennison wrote: >> strings as function return values. Of course this method only works if you >> don't plan on changing the contents. For example (my apologies if my >Ada 95 removed the requirement that a String declaration as used in the >above example be declared _constant_. The string will be properly >sized, but you can now modify it to your heart's content, just can't >change the size. True. But its quite rare that you might need to change the contents but never the size. Thus this relaxation is mostly useful for those slightly less rare instances where you need it to not be constant for technical reasons. (eg: You need to create an access to it using a non-constant access type. You need to use it in an "access" parameter. You need to pass it into a routine that doesn't modify it, but uses "in out" for the parameter anyway.) I'll admit its a possibility, but not a common enough one to worry a beginner with. --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html home email - mailto:dennison@telepath.com