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,start 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: Abstract Interface - Assertion Error Date: Thu, 18 Oct 2007 11:03:54 -0700 Organization: http://groups.google.com Message-ID: <1192730634.890947.17190@e9g2000prf.googlegroups.com> NNTP-Posting-Host: 129.29.227.2 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1192730635 17507 127.0.0.1 (18 Oct 2007 18:03:55 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 18 Oct 2007 18:03:55 +0000 (UTC) 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.2; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Xref: g2news2.google.com comp.lang.ada:2484 Date: 2007-10-18T11:03:54-07:00 List-Id: 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