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.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.182.91.9 with SMTP id ca9mr17246691obb.7.1459837895339; Mon, 04 Apr 2016 23:31:35 -0700 (PDT) X-Received: by 10.182.246.104 with SMTP id xv8mr365864obc.1.1459837895263; Mon, 04 Apr 2016 23:31:35 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!gy3no296211igb.0!news-out.google.com!u9ni526igk.0!nntp.google.com!gy3no296203igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 4 Apr 2016 23:31:34 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=95.173.128.204; posting-account=YB4WOgoAAABLG9D7qoJiPBc6EJSzsPDF NNTP-Posting-Host: 95.173.128.204 References: <1083384c-e798-49a0-903a-718dea4ab131@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Ada 2005,Doubly_Linked_List with Controlled parameter From: George J Injection-Date: Tue, 05 Apr 2016 06:31:35 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:29983 Date: 2016-04-04T23:31:34-07:00 List-Id: > Yes. Your example, with only a single string, appeared to be an attempt > to reinvent Unbounded_String, but if you need a type with multiple such > values, this is a way to do it. > > "The type Unbounded_String needs finalization (see 7.6)." and "No > storage associated with an Unbounded_String object shall be lost upon > assignment or scope exit." ARM A.4.5 > > (http://www.adaic.org/resources/add_content/standards/05rm/html/RM-A-4-5.html). > > But I see you've discovered that already. > > (Some on here dislike Unbounded_String, but if it serves your purposes > you should ignore them and use it. I worked on a large, soft-real-time > system that used Unbounded_String extensively without problem, so such > people's concerns seem to be unfounded.) > > -- > Jeff Carter > "Hold your temper. Count ten.... Now let 'er go. > You got a good aim." > Never Give a Sucker an Even Break > 105 Thanks a lot, Jeffrey!