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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ff52d623df1ca1d6 X-Google-Attributes: gid103376,public From: swhalen@netcom.com Subject: Re: Newbe Q: generic array not working OK Date: 2000/03/13 Message-ID: <8ahctn$r7k$1@slb2.atl.mindspring.net>#1/1 X-Deja-AN: 596646079 References: <38CBAE60.621F6A2D@skynet.be> Organization: ? User-Agent: tin/pre-1.4-19990517 ("Psychonaut") (UNIX) (SunOS/4.1.4 (sun4m)) Newsgroups: comp.lang.ada Date: 2000-03-13T00:00:00+00:00 List-Id: I'm not sure I understand the question, but this works on GNAT 3.12p (I got the same error as you on your version). -- test.adb: with Ada.Text_IO; use Ada.Text_IO; with t ; procedure test is -- type Vec is array (Integer range 1..6) of Float ; type Vec is array (Integer range <>) of Float ; function Sum is new t.Apply (Integer, Float, Vec, "+") ; subtype Vec6 is Vec (1..6); V6 : Vec6 := (6.6, 5.5, 4.4, 3.3, 2.2, 1.1); begin Put_Line (Sum (V6)'Img); end test ; -- {===--------------------------------------------------------------===} Steve Whalen swhalen@netcom.com {===--------------------------------------------------------------===}