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,f30ef262af690ce0 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Fri, 16 May 2008 20:57:52 +0200 From: Gautier User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: numbers as 'generics' parameters References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 85.1.147.146 X-Original-NNTP-Posting-Host: 85.1.147.146 Message-ID: <482dd91a$1_3@news.bluewin.ch> X-Trace: news.bluewin.ch 1210964250 85.1.147.146 (16 May 2008 20:57:30 +0200) Organization: Bluewin AG Complaints-To: abuse@bluewin.ch X-Original-NNTP-Posting-Host: 127.0.0.1 Path: g2news1.google.com!news4.google.com!feeder.news-service.com!feeder2.ecngs.de!ecngs!feeder.ecngs.de!130.59.10.21.MISMATCH!kanaga.switch.ch!news-zh.switch.ch!switch.ch!news.ip-plus.net!newsfeed.ip-plus.net!news.bluewin.ch!not-for-mail Xref: g2news1.google.com comp.lang.ada:115 Date: 2008-05-16T20:57:52+02:00 List-Id: jhc0033@gmail.com: > As far as I can tell, Ada does not allow anything but types as > generics parameters, so what would be the approach to use with it? Uh ?.. generic N: Integer; package Fixed_size_vectors is Vector: array(1..N) of Float; end; __________________________________________________________________ Gautier's Ada programming -- http://sourceforge.net/users/gdemont/ NB: For a direct answer, e-mail address on the Web site!