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/13 Message-ID: #1/1 X-Deja-AN: 536168127 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> <7tvpd6$1mg$1@nnrp1.deja.com> 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-13T00:00:00+00:00 List-Id: * Ted Dennison wrote: > lutz@iks-jena.de (Lutz Donnerhacke) wrote: >> 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, but what you just >answered with is completely wrong. I tested it and found that the reverse operation of the reserved word 'new' is given by the generic package Unchecked_Deallocation in RM-13.11.2. Instantiating a Free procedure as given in RM-13.11.2(5) works and provides the required function. >From reading the Rationale and Reference Manual, the novice (like me) can not deduce, that this 'Unchecked_'-Package is required for normal usage. Instead the longish discussions about accessibility rules lead me to the belief, that access types are like smart pointers. Sorry for that.