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,1b3cf847f22f6902 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-18 08:00:12 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!uunet!sea.uu.net!ash.uu.net!world!news From: Robert A Duff Subject: Re: Array type conversion User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Sender: news@world.std.com (Mr Usenet Himself) Message-ID: Date: Fri, 18 Oct 2002 14:59:22 GMT Content-Type: text/plain; charset=us-ascii References: NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Organization: The World Public Access UNIX, Brookline, MA Xref: archiver1.google.com comp.lang.ada:29907 Date: 2002-10-18T14:59:22+00:00 List-Id: "Keith" writes: > What is the implementation consequence of not following Ada reference > manual section 4.6 12/1 "The component subtypes shall statically match"? ... > I know that if the component subtypes have to statically match in an array > conversion then there is no need to check for matching constraints at run > time like Ada 83. Does this speed up execution? Yeah, but I think the main reason was to catch bugs at compile time rather than run time. There are several similar cases in Ada 95, where a run-time check in Ada 83 was changed to a static check in Ada 95. There might have been some other issue related to passing type conversions as 'out' parameters, especially when the type is limited, so the conversion cannot be implemented by copying. I'm not sure about that, and I don't feel like thinking about it right now. ;-) - Bob