From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e8ed21e11160bf2f X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!e9g2000prf.googlegroups.com!not-for-mail From: "Mike.McNett" Newsgroups: comp.lang.ada Subject: Re: Abstract Interface - Assertion Error Date: Fri, 19 Oct 2007 03:52:52 -0700 Organization: http://groups.google.com Message-ID: <1192791172.611781.102970@e9g2000prf.googlegroups.com> References: <1192730634.890947.17190@e9g2000prf.googlegroups.com> <1192747730.7885.2.camel@K72> NNTP-Posting-Host: 129.29.227.4 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1192791173 363 127.0.0.1 (19 Oct 2007 10:52:53 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 19 Oct 2007 10:52:53 +0000 (UTC) In-Reply-To: <1192747730.7885.2.camel@K72> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.30; Windows-Media-Player/10.00.00.3990),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: e9g2000prf.googlegroups.com; posting-host=129.29.227.4; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Xref: g2news2.google.com comp.lang.ada:2497 Date: 2007-10-19T03:52:52-07:00 List-Id: On Oct 18, 6:48 pm, Georg Bauhaus 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