From: "Steve Doiel" <nospam_steved94@attbi.com>
Subject: Re: Beginner: Unchecked Deallocation
Date: Thu, 20 Dec 2001 04:54:26 GMT
Date: 2001-12-20T04:54:26+00:00 [thread overview]
Message-ID: <6aeU7.10744$NM4.3150153@rwcrnsc53> (raw)
In-Reply-To: d442bc8e.0112181417.32159165@posting.google.com
If you move:
procedure Free( LS: in out List_Acs ) is
new Ada.Unchecked_Deallocation( Liste, List_Acs );
To the package spec all is well.
SteveD
"Antoine Lec." <bilbo@volcanomail.com> wrote in message
news:d442bc8e.0112181417.32159165@posting.google.com...
> > Procedure free declared in the spec is parameterless. The procedure
> > free instantiated in the body takes an in out parameter of type
> > liste_acs!
>
>
> There is another problem when I change the definitions with this one :
>
> lcm.ads:
> procedure Free (LS: in out Liste_Acs);
>
> lcm.adb
> procedure Free (LS: in out Liste_Acs) is
> new Ada.Unchecked_Deallocation (Liste, Liste_Acs);
>
> This results with:
>
> procedure Free (LS: in out Liste_Acs) is
> |
> >>> formal part not allowed in instantiation
>
> So what's the problem ?
>
> --
> b@v
prev parent reply other threads:[~2001-12-20 4:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-18 3:35 Beginner: Unchecked Deallocation Antoine Lec.
2001-12-18 14:00 ` Mark Doherty
2001-12-18 22:17 ` Antoine Lec.
2001-12-20 4:39 ` Patrick Hohmeyer
2001-12-20 10:07 ` Antoine Lec.
2001-12-20 4:54 ` Steve Doiel [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox