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,bc7fae210b5e1392 X-Google-Attributes: gid103376,public From: lutz@iks-jena.de (Lutz Donnerhacke) Subject: Re: how do i include 111111 in an enumaration type ? Date: 1999/10/12 Message-ID: #1/1 X-Deja-AN: 535831019 Distribution: world Content-Transfer-Encoding: 8bit References: <7tsq3o$92p$1@minus.oleane.net> <38021792_4@news1.prserv.net> <7ttuvt$ssb$1@minus.oleane.net> <38033f0b_3@news1.prserv.net> Content-Type: text/plain; charset=ISO-8859-1 Organization: IKS GmbH Jena Mime-Version: 1.0 User-Agent: slrn/0.9.5.7 (UNIX) Newsgroups: comp.lang.ada Date: 1999-10-12T00:00:00+00:00 List-Id: * Matthew Heaney wrote: >(Lutz Donnerhacke) wrote: >> After some failtures to use Ada.Strings.Unbounded--I hate To_Unbound...-- >> I came up with code like this: > >Your code segment is completely wrong. Do not use raw access types. >Use Unbounded_String, which does automatic garbage collection. I thougt (by reading the RM95), that only explizit calls of Unchecked_Access or (Unchecked_)Free can cause a memory leakage. I assumed automatic garbage collecting to every ordinary use of access and new.