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,f71c159449d6e114 X-Google-Attributes: gid103376,public From: dewi@cableol.co.uk (Dewi Daniels) Subject: Re: Ada 83 - avoiding unchecked conversions. Date: 1996/12/11 Message-ID: <32b03008.564464@netnews.worldnet.att.net>#1/1 X-Deja-AN: 203572765 references: <32AED68A.48BE@aisf.com> content-type: text/plain; charset=us-ascii organization: Lloyd's Register mime-version: 1.0 newsgroups: comp.lang.ada Date: 1996-12-11T00:00:00+00:00 List-Id: On Wed, 11 Dec 1996 07:43:07 -0800, "Chris Sparks (Mr. Ada)" wrote: > The_Record_Address : constant System.Address :=3D The_Record'Address; > Result : Integer_32; > for Result'Address use The_Record_Address; -- New way >--for Result use at The_Record_Address; -- Old way Ada 83 prohibits the use of address clauses to alias two variables (LRM 13.5). I believe it's legal in Ada 95. My preference would be to use an unchecked conversion. --=20 Dewi Daniels Marietta, Georgia