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: a07f3367d7,a875277ea50f811b X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news1.google.com!news.glorb.com!gegeweb.org!usenet-fr.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!oleane.net!oleane!hunter.axlog.fr!nobody From: Jean-Pierre Rosen Newsgroups: comp.lang.ada Subject: Re: Record type as generic parameter Date: Thu, 13 Aug 2009 12:23:30 +0200 Organization: Adalog Message-ID: References: <2698b15a-7a94-45b5-90af-d0fb5929b1cf@w41g2000yqb.googlegroups.com> NNTP-Posting-Host: mailhost.axlog.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: s1.news.oleane.net 1250150347 4226 195.25.228.57 (13 Aug 2009 07:59:07 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Thu, 13 Aug 2009 07:59:07 +0000 (UTC) User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) In-Reply-To: <2698b15a-7a94-45b5-90af-d0fb5929b1cf@w41g2000yqb.googlegroups.com> Xref: g2news2.google.com comp.lang.ada:7721 Date: 2009-08-13T12:23:30+02:00 List-Id: Gautier write-only a �crit : > [...] Then, my favourite Ada compiler > doesn't want a record as generic parameter: > > generic > type Scenario is range <>; > type Association is record > scen: Scenario; > it : Item; > end record; > scenario_definition: array(Positive range <>) of Association; > procedure Fill_Scenarios; > > Any nice workaround ? Any reason why you cannot make a generic package that would *export* Association and Scenario_Definition (and procedure Fill_Scenarios), rather than importing them? -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr