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,df40d0d1975a16a6,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-13 04:49:05 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!news.teledanmark.no!news.equant.no!uio.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Optimizing Boundary Checks Date: Fri, 13 Jun 2003 11:49:03 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: NNTP-Posting-Host: kiuk0152.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1055504943 9913 129.241.83.78 (13 Jun 2003 11:49:03 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Fri, 13 Jun 2003 11:49:03 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:39095 Date: 2003-06-13T11:49:03+00:00 List-Id: After reading some posts here lately I have understood that the compiler can optimise out boundary checks on say arrays if you do this: type Index_Range is range 1 .. 10; type Items is array (Index_Range) of Natural; But if you write: type Items is array (1 .. 10) of Natural; is boundary checks then on? -- Preben Randhol http://www.pvv.org/~randhol/