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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,7d7fb890f09232d3 X-Google-Attributes: gid103376,public From: gisle@spurv.ii.uib.no (Gisle S�lensminde) Subject: Re: Diff between bounded and unbounded? Date: 2000/01/24 Message-ID: #1/1 X-Deja-AN: 576961470 Content-Transfer-Encoding: 8bit References: <20000124154717.14341.qmail@web217.mail.yahoo.com> Organization: University of Bergen, Norway Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-01-24T00:00:00+00:00 List-Id: MaryAnn Atkinson wrote: > Thanks for the info. One more question: What is then > the difference between BOUNDED and UNBDOUNDED strings? Bounded string is a generic type which must be instantiated to a preset/compile-time maximum length, while there is no such upper limit for unbounded strings. They can be set to any length at run time, given enough RAM. Another difference is that unbounded strings will allocate space for itself on the heap, and will allocate more (or less) storage as needed. This is automatic, and the language standard states that all memory used by unbounded strings should be automaticly released on exit of scope and assignment. Bounded strings should not use pointers and dynamic allocation due to an implementation advice in The RM. -- Gisle S�lensminde ( gisle@ii.uib.no ) ln -s /dev/null ~/.netscape/cookies