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-7-bit X-Google-Thread: 103376,ccb8bd6b4c3162fd X-Google-Attributes: gid103376,public From: mcc@entropy.cs.princeton.edu (Martin C. Carlisle) Subject: Re: Beginner's questions Date: 1999/05/04 Message-ID: <7gn2d5$a8f$1@cnn.Princeton.EDU>#1/1 X-Deja-AN: 473937269 References: <372da49c.12366381@news.rwth-aachen.de> <372E7475.6D884152@aasaa.ofe.org> <372ED1C4.9A1AE1B2@frqnet.de> <1999May4.093747.1@eisner> Organization: US Air Force Academy, Dept of Computer Science Newsgroups: comp.lang.ada Date: 1999-05-04T00:00:00+00:00 List-Id: Unbounded strings are required not to leak memory. See A.4.5(88) "No storage associated with an Unbounded_String object shall be lost upon assignment or scope exit." This sentence immediately reminds me of Ada.Finalization.Controlled, and not suprisingly, GNAT uses controlled types to implement unbounded strings. I have not checked ACVC, but I suspect it would be very hard to validate a compiler not meeting this requirement. --Martin In article <1999May4.093747.1@eisner>, Larry Kilgallen wrote: >In article <372ED1C4.9A1AE1B2@frqnet.de>, Andreas Winckler writes: >> So, does anybody know more details about unbounded_strings? How does it >> work? Does it recycle deallocated memory by 100%? If not I'll better >> stay away from it. > >There are three levels of guarantee possible: > The language specification (reference manual) might require it. > The author of your compiler(s) might commit to it. > You might engage in testing for it. -- Martin C. Carlisle, Asst Prof of Computer Science, US Air Force Academy carlislem@acm.org, http://www.usafa.af.mil/dfcs/bios/carlisle.html DISCLAIMER: This content in no way reflects the opinions, standards or policy of the US Air Force Academy or the United States Government.