comp.lang.ada
 help / color / mirror / Atom feed
From: "chris.danx" <chris.danx@ntlworld.com>
Subject: Re: Designated type of actual does not match that of formal
Date: Thu, 11 Oct 2001 19:52:35 +0100
Date: 2001-10-11T19:52:35+01:00	[thread overview]
Message-ID: <JTlx7.6109$i14.756989@news2-win.server.ntlworld.com> (raw)
In-Reply-To: gPlx7.24924$ev2.33632@www.newsranger.com


"Ted Dennison" <dennison@telepath.com> wrote in message
news:gPlx7.24924$ev2.33632@www.newsranger.com...
> In article <gvlx7.5777$i14.731944@news2-win.server.ntlworld.com>,
chris.danx
> says...
> >type xxx is new abc with private; -- where abc is abstract & limited;
> >type xxx_access is access all xxx'class;
> >
> >I tried
> >
> >procedure free is new ada.unchecked_deallocation (xxx, xxx_access);
> >
> >but it doesn't work.  I get the error 'Designated type of actual does not
> >match that of formal "name"?'.  What am I missing?
>
> That's because it doesn't. xxx_access points to objects of type
"xxx'class", not
> xxx. Change one or the other to match, and it ought to work.

Thanks Ted




  reply	other threads:[~2001-10-11 18:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-11 18:26 Designated type of actual does not match that of formal "name"? chris.danx
2001-10-11 18:47 ` Designated type of actual does not match that of formal Ted Dennison
2001-10-11 18:52   ` chris.danx [this message]
2001-10-11 18:54 ` Designated type of actual does not match that of formal "name"? Sergey Koshcheyev
2001-10-11 19:25   ` chris.danx
replies disabled

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