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,4c459ff0adb576bc X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-09 11:49:20 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!dispose.news.demon.net!demon!peernews!peer.cwci.net!news5-gui.server.ntli.net!ntli.net!news2-win.server.ntlworld.com.POSTED!not-for-mail From: "martin.m.dowie" Newsgroups: comp.lang.ada References: <3C5AB0B7.9D75D49A@grammatech.com> <3c639940@pull.gecm.com> <4519e058.0202080714.1bf916bb@posting.google.com> Subject: Re: Refactoring and Ada X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: <23f98.25730$H37.3045922@news2-win.server.ntlworld.com> Date: Sat, 9 Feb 2002 19:48:41 -0000 NNTP-Posting-Host: 62.253.13.156 X-Complaints-To: abuse@ntlworld.com X-Trace: news2-win.server.ntlworld.com 1013284158 62.253.13.156 (Sat, 09 Feb 2002 19:49:18 GMT) NNTP-Posting-Date: Sat, 09 Feb 2002 19:49:18 GMT Organization: ntlworld News Service Xref: archiver1.google.com comp.lang.ada:19815 Date: 2002-02-09T19:48:41+00:00 List-Id: > The issue is indeed performance. (The special case to be recognized by the > compiler is that the clause is in fact a confirming rep clause.) The semantics > have to be maintained -- eg, array indexing and for-loop iterations -- but the > compiler will produce comparably inefficient code unless the special case is > recognized. (Most do.) Think about how array element address calculation would > work using arbitrarily ascending values for the indexes, and the problem becomes > evident. Thought as much - not exactly hard to spot though you would think!