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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d17561d7e5eba62c X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: An alternative to Unchecked Conversion Date: 1999/12/23 Message-ID: <83sb9a$r3t$1@nnrp1.deja.com>#1/1 X-Deja-AN: 564010561 References: <38596575_4@news1.prserv.net> <3859701a@rsl2.rslnet.net> X-Http-Proxy: 1.0 x32.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Thu Dec 23 05:17:32 1999 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-12-23T00:00:00+00:00 List-Id: In article , Simon Wright wrote: > > > X : TEST_TYPE; > > > Y : TEST_TYPE; > > > Y_Address : constant Address := Y'Address; > > > For X'Address Use Y_Address; > > > > Tried this and got > > > > 9| Y_ADDR : Constant ADDRESS := Y'Address; > > test.ada:10:1: > > 10| For X'Address Use Y_ADDR; > > ^1 > > *** 1 Error 3208: This length representation clause does not specify a > > legal > > *** attribute (RM83 13.2 (3)) Read the RM, and follow the rule there! The above code clearly does NOT follow this rule! Sent via Deja.com http://www.deja.com/ Before you buy.