comp.lang.ada
 help / color / mirror / Atom feed
From: Florian Weimer <fw@cygnus.stuttgart.netsurf.de>
Subject: Re: Free()
Date: 1999/05/16
Date: 1999-05-16T18:19:46+00:00	[thread overview]
Message-ID: <m3yaioswql.fsf@deneb.cygnus.stuttgart.netsurf.de> (raw)
In-Reply-To: UYA%2.122$UD6.1219@newsfeed.slurp.net

"Jim Whatley" <wha_tlje@dotsar.net> writes:

>   Have a question about how to use Free() in Gnat 3.11p.  Neither myself,
> nor my instuctor, have been able to get it to work.  I've checked the gnat
> RM and UG and it *appears* all I need to do to use it is
> "Free(access_type_name)" but I get Free is undefined.

`Free' has to be an instantiation of Ada.Unchecked_Deallocation, like
this:

       procedure Free is
           new Ada.Unchecked_Deallocation(
               object_subtype_name, access_to_variable_subtype_name);




  reply	other threads:[~1999-05-16  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-05-16  0:00 Free() Jim Whatley
1999-05-16  0:00 ` Florian Weimer [this message]
1999-06-13  0:00   ` Free() Chris Warwick
replies disabled

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