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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,83d2d63f98e99c58 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-14 10:24:18 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!wn11feed!wn12feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!sccrnsc01.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: C to Ada conversion References: X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 12.234.13.56 X-Complaints-To: abuse@attbi.com X-Trace: sccrnsc01 1042568657 12.234.13.56 (Tue, 14 Jan 2003 18:24:17 GMT) NNTP-Posting-Date: Tue, 14 Jan 2003 18:24:17 GMT Organization: AT&T Broadband Date: Tue, 14 Jan 2003 18:24:17 GMT Xref: archiver1.google.com comp.lang.ada:33009 Date: 2003-01-14T18:24:17+00:00 List-Id: > >ok but otherwise it is very dangerous because it does not take into > >account that in Ada the index range of arrays does not necessarly On second thought, a more accurate translation from the C, and one that would be less general and thus perhaps show better in a benchmark, would be to replace type Matrices is array (Integer range <>, Integer range <>) of Float; by Rs : constant := 6; type Matrices is array (1 .. Rs, 1 .. Rs) of Float;