comp.lang.ada
 help / color / mirror / Atom feed
From: "Mike.McNett" <michael.mcnett@usma.edu>
Subject: Re: Abstract Interface - Assertion Error
Date: Fri, 19 Oct 2007 03:52:52 -0700
Date: 2007-10-19T03:52:52-07:00	[thread overview]
Message-ID: <1192791172.611781.102970@e9g2000prf.googlegroups.com> (raw)
In-Reply-To: <1192747730.7885.2.camel@K72>

On Oct 18, 6:48 pm, Georg Bauhaus <rm.tsoh+bauh...@maps.futureapps.de>
wrote:
> On Thu, 2007-10-18 at 11:03 -0700, Mike.McNett wrote:
> > 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
>
> Trying to construe sources as good I can from your hints, I get
>
> georg@K72:~/News$ gnatmake -v -gnat05 graph_interface.ads
>
> Which compiler/version are you using?- Hide quoted text -
>

We are running 3.4.6 for GNAT GPL 2006.

Mike





  reply	other threads:[~2007-10-19 10:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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
replies disabled

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