comp.lang.ada
 help / color / mirror / Atom feed
* Abstract Interface - Assertion Error
@ 2007-10-18 18:03 Mike.McNett
  2007-10-18 22:48 ` Georg Bauhaus
  0 siblings, 1 reply; 10+ messages in thread
From: Mike.McNett @ 2007-10-18 18:03 UTC (permalink / raw)


I am having a problem with creating one Interface, then an Abstract
type that implements that interface, and a concrete type from the
Abstract one.  When I don't use the interface, all is good.  When the
Abstract type is based on the Interface Type, however, I get a
"System.Assertions.Assert_Failur" runtime exception.  Here's the basic
code:

In Graph_Interface package, I define Type Graph_Interface_Type is
Interface;

In Abstract_Graph package, I define Type Abstract_Graph_Type is
ABSTRACT NEW Graph_Interface.Graph_Interface_Type with Private;

In my Matrix_Graph package, I define Type Matrix_Graph_Type is new
Abstract_Graph_Type With Private;

Using the above, everything compiles but I get the assertion error.
When I change the Abstract_Graph_Type so that it is just Abstract and
doesn't implement the interface, all is good.

Any ideas / thoughts?

Thanks,
Mike




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

end of thread, other threads:[~2007-10-23 19:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-18 18:03 Abstract Interface - Assertion Error Mike.McNett
2007-10-18 22:48 ` Georg Bauhaus
2007-10-19 10:52   ` Mike.McNett
2007-10-19 10:54     ` Mike.McNett
2007-10-19 17:46       ` Georg Bauhaus
2007-10-19 19:28         ` Mike.McNett
2007-10-19 19:45         ` Mike.McNett
2007-10-22 17:02           ` Georg Bauhaus
2007-10-22 18:07             ` Georg Bauhaus
2007-10-23 19:18             ` Simon Wright

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