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,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder.news-service.com!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: ANN: Ada 2005 Math Extensions, 20100810 release Date: Sat, 14 Aug 2010 22:55:05 +0100 Organization: A noiseless patient Spider Message-ID: References: <82ocd8m826.fsf@stephe-leake.org> <82sk2ivwa7.fsf@stephe-leake.org> <9b04znr94b2i$.pxsxi24sc9zv.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Sat, 14 Aug 2010 21:55:05 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="KCXegvZb5vh43D+f3BR6Ew"; logging-data="26711"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19V5GdwgyujAAc1BtEd20VS9QwCgYYMUqk=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) Cancel-Lock: sha1:2yIK8hP9+RzRPHVOYR/zUMkXuJU= sha1:AZP0nB0eInw1pXn4Z3gIos1sCzE= Xref: g2news1.google.com comp.lang.ada:13307 Date: 2010-08-14T22:55:05+01:00 List-Id: "Dmitry A. Kazakov" writes: > with Ada.Numerics.Generic_Complex_Arrays; > generic > with package Complex_Arrays is > new Ada.Numerics.Generic_Complex_Arrays (<>); > package Whatever is > use Complex_Arrays; > use Complex_Types; -- Complex_Arrays.Complex_Types > use Real_Arrays; -- Complex_Arrays.Real_Arrays > > function Eigenvalues (A : Real_Matrix) return Complex_Vector; > end Whatever; Not sure this is _quite_ the name I was looking for :-) I found that I could say package body Whatever is subtype Real is Complex_Arrays.Real_Arrays.Real; So I can see the formal parameters of a formal package! (I knew that really, that's how signature packages work). This really seems like the best way to go. Thanks to you and Stephe for the pointers.