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: Ted Dennison Subject: Re: how do i include 111111 in an enumaration type ? Date: 1999/10/12 Message-ID: <7tvnum$c1$1@nnrp1.deja.com>#1/1 X-Deja-AN: 535846547 References: <7tsq3o$92p$1@minus.oleane.net> <38021792_4@news1.prserv.net> <7ttuvt$ssb$1@minus.oleane.net> <38033f0b_3@news1.prserv.net> X-Http-Proxy: 1.0 bx6.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Tue Oct 12 16:34:31 1999 GMT X-MyDeja-Info: XMYDJUIDtedennison Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.6 [en] (WinNT; I) Date: 1999-10-12T00:00:00+00:00 List-Id: In article , lutz@iks-jena.de (Lutz Donnerhacke) wrote: > * Matthew Heaney wrote: > >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. Whoa! I don't nessecarily agree with Matt's sentiment in all cases, but what you just answered with is completely wrong. o The only way to get memory leaks is to *not* deallocate allocated memory. Explicit deallocations can be dangerous, but they cannot cause leaks. o Almost no Ada compilers provide automatic garbage collection. I don't know of *any* that do it that don't target the JVM. -- T.E.D. Sent via Deja.com http://www.deja.com/ Before you buy.