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,5c1125c290d9dd14 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: ANN: Ada 2005 Math Extensions, 20100810 release References: <82ocd8m826.fsf@stephe-leake.org> Date: Fri, 13 Aug 2010 21:05:20 -0400 Message-ID: <82sk2ivwa7.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (windows-nt) Cancel-Lock: sha1:AKhO8Z+aSHg8kWB7to1gNMP6W4I= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: 48e7a4c65ebc9e029e66110185 Xref: g2news1.google.com comp.lang.ada:13261 Date: 2010-08-13T21:05:20-04:00 List-Id: sjw writes: > On Aug 12, 11:36 am, Stephen Leake > wrote: > >> Post complete code, I'll try it on my version of gnat. > > Thanks. > > Remember -gnatpg! > > The code I posted above is the complete spec (not going to bother to > write the body if can't get the spec to compile!): > > with Ada.Numerics.Generic_Complex_Arrays; > with Ada.Numerics.Generic_Complex_Types; > > generic > with package Complex_Types is new Ada.Numerics.Generic_Complex_Types (Real); > with package Complex_Arrays is new Ada.Numerics.Generic_Complex_Arrays > (Generic_Real_Arrays, Complex_Types); I see the problem. Generic_Real_Arrays is the name of the parent generic package; that's not a concrete package, so it can't be used here. > use Complex_Arrays; > package Ada.Numerics.Generic_Real_Arrays.Extensions is > > function Eigenvalues (A : Real_Matrix) return Complex_Vector; > > end Ada.Numerics.Generic_Real_Arrays.Extensions; This compiles: with Ada.Numerics.Generic_Complex_Arrays; with Ada.Numerics.Generic_Complex_Types; with Ada.Numerics.Generic_Real_Arrays; generic type Real is digits <>; with package Real_Arrays is new Ada.Numerics.Generic_Real_Arrays (Real); with package Complex_Types is new Ada.Numerics.Generic_Complex_Types (Real); with package Complex_Arrays is new Ada.Numerics.Generic_Complex_Arrays (Real_Arrays, Complex_Types); package Extensions is function Eigenvalues (A : Real_Arrays.Real_Matrix) return Complex_Arrays.Complex_Vector; end Extensions; Is there some reason you want Extensions to be a child of Generic_Real_Arrays? -- -- Stephe