comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison<dennison@telepath.com>
Subject: Re: Designated type of actual does not match that of formal
Date: Thu, 11 Oct 2001 18:47:40 GMT
Date: 2001-10-11T18:47:40+00:00	[thread overview]
Message-ID: <gPlx7.24924$ev2.33632@www.newsranger.com> (raw)
In-Reply-To: gvlx7.5777$i14.731944@news2-win.server.ntlworld.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.

---
T.E.D.    homepage   - http://www.telepath.com/dennison/Ted/TED.html

No trees were killed in the sending of this message. 
However a large number of electrons were terribly inconvenienced.



  reply	other threads:[~2001-10-11 18:47 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 ` Ted Dennison [this message]
2001-10-11 18:52   ` Designated type of actual does not match that of formal chris.danx
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