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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ab36006a122bb868 X-Google-Attributes: gid103376,public From: Robert A Duff Subject: Re: Overlay allowability Date: 2000/05/03 Message-ID: #1/1 X-Deja-AN: 618772745 Sender: bobduff@world.std.com (Robert A Duff) References: <390D94FB.D23390D4@lmco.com> <8eketr$i3c$1@nnrp1.deja.com> <3910514D.13BF2DE1@Raytheon.com> Organization: The World Public Access UNIX, Brookline, MA Newsgroups: comp.lang.ada Date: 2000-05-03T00:00:00+00:00 List-Id: "Samuel T. Harris" writes: > So, when performance and consistency are the requirements, > make an overlay. If one simply needs to jam one kind of data > into another, use unchecked_conversion. Ada 95 allows U_C to return its result by reference. If the compiler takes advantage of that permission, then U_C can be just as efficient as overlays. So I suggest you measure the speed before taking the above advice. - Bob