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.66.249.41 with SMTP id yr9mr17841356pac.37.1459825208513; Mon, 04 Apr 2016 20:00:08 -0700 (PDT) X-Received: by 10.157.19.29 with SMTP id f29mr364624ote.19.1459825208322; Mon, 04 Apr 2016 20:00:08 -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!nt3no7839422igb.0!news-out.google.com!ha2ni49igb.0!nntp.google.com!gy3no284072igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 4 Apr 2016 20:00:08 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=37.190.52.68; posting-account=YB4WOgoAAABLG9D7qoJiPBc6EJSzsPDF NNTP-Posting-Host: 37.190.52.68 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <1083384c-e798-49a0-903a-718dea4ab131@googlegroups.com> Subject: Re: Ada 2005,Doubly_Linked_List with Controlled parameter From: George J Injection-Date: Tue, 05 Apr 2016 03:00:08 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:29977 Date: 2016-04-04T20:00:08-07:00 List-Id: =D0=B2=D1=82=D0=BE=D1=80=D0=BD=D0=B8=D0=BA, 5 =D0=B0=D0=BF=D1=80=D0=B5=D0= =BB=D1=8F 2016 =D0=B3., 5:27:49 UTC+3 =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE= =D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C Jeffrey R. Carter =D0=BD=D0=B0=D0=BF= =D0=B8=D1=81=D0=B0=D0=BB: > On 04/04/2016 07:03 PM, George J wrote: > >=20 > > Problem is that after calling "Append"->at once starts Finalization pro= c, so > > appended pure line. I just use an access parameter after this > > "Doubly_Linked_List(Info)", and it's ok now,but i think that i'm wrong,= cause > > Finalization doesn't start with Test_List.Clear and when exiting progra= m. So > > question is "How I can finalize Doubly_Connected_List Controlled parame= ter > > correctly?Or I must not use Controlled parameter in this list?". >=20 > Rather than trying to reinvent unbounded strings (incorrectly), use > Ada.Strings.Unbounded.Unbounded_String instead of Info_Record and all you= r > problems will disappear. Get rid of type Info while you're at it. >=20 > --=20 > Jeff Carter > "Hold your temper. Count ten.... Now let 'er go. > You got a good aim." > Never Give a Sucker an Even Break > 105 Ok,thanks,and if I correctly understood,if I have record with multiple para= meters, i must do it like --------------------------------- type Info_Record is Name:Unbounded_String;--ok Surname:Unbounded_String; Age:Natural; end Info_Record; -------------------------------- Am I right? And are they normally will be deleted from memory with finalization of Doub= ly_Connected_List?