comp.lang.ada
 help / color / mirror / Atom feed
* Designated type of actual does not match that of formal "name"?
@ 2001-10-11 18:26 chris.danx
  2001-10-11 18:47 ` Designated type of actual does not match that of formal Ted Dennison
  2001-10-11 18:54 ` Designated type of actual does not match that of formal "name"? Sergey Koshcheyev
  0 siblings, 2 replies; 5+ messages in thread
From: chris.danx @ 2001-10-11 18:26 UTC (permalink / raw)


Hi,

I'm trying to instantiate an instance of Ada.Unchecked_Deallocation on a
type which is defined as follows

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?

If there isn't a way around this then the record type which holds an item of
type xxx_access will have to be limited (and hold an item of type xxx
instead).  That might not be such a bad idea in this instance, but I'd like
to know how what exactly the error means anyway.

Thanks,
Chris




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-10-11 19:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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