comp.lang.ada
 help / color / mirror / Atom feed
From: lutz@iks-jena.de (Lutz Donnerhacke)
Subject: Re: how do i include 111111 in an enumaration type ?
Date: 1999/10/13
Date: 1999-10-13T00:00:00+00:00	[thread overview]
Message-ID: <slrn808j1s.o7.lutz@taranis.iks-jena.de> (raw)
In-Reply-To: 7tvpd6$1mg$1@nnrp1.deja.com

* 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.




  reply	other threads:[~1999-10-13  0:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <7tsq3o$92p$1@minus.oleane.net>
     [not found] ` <38021792_4@news1.prserv.net>
     [not found]   ` <slrn80495c.2a2.aidan@skinner.demon.co.uk>
1999-10-11  0:00     ` how do i include 111111 in an enumaration type ? Keith Thompson
1999-10-12  0:00   ` Sybs ALHABSHI
1999-10-12  0:00     ` Matthew Heaney
1999-10-12  0:00       ` Ehud Lamm
1999-10-12  0:00     ` Lutz Donnerhacke
1999-10-12  0:00       ` Matthew Heaney
1999-10-12  0:00         ` Lutz Donnerhacke
1999-10-12  0:00           ` Ted Dennison
1999-10-12  0:00           ` Ted Dennison
1999-10-13  0:00             ` Lutz Donnerhacke [this message]
1999-10-13  0:00               ` Matthew Heaney
1999-10-13  0:00                 ` Ted Dennison
1999-10-12  0:00 ` Nick Roberts
1999-10-14  0:00   ` Sybs ALHABSHI
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox