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=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ff016264a967a8e0 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-01-20 00:59:31 PST Newsgroups: comp.lang.ada Path: nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!udel!gatech!howland.reston.ans.net!news.sprintlink.net!pipex!uunet!telesoft!kst From: kst@alsys.com (Keith Thompson) Subject: Re: Access type conversion... Message-ID: Originator: kst@pulsar Sender: news@thomsoft.com (USENET News Admin @flash) Organization: Thomson Software Products, San Diego, CA, USA References: <3flau7$bgu@newsbf02.news.aol.com> Date: Fri, 20 Jan 1995 08:59:31 GMT Date: 1995-01-20T08:59:31+00:00 List-Id: In <3flau7$bgu@newsbf02.news.aol.com> whitteng@aol.com (Whitteng) writes: > The others have shown examples of how to get the string's address. Our > standard way of getting the address of the first element of an array is > > addr := array(array'first)'address; > > This works and seems to be the most portable. Don't forget that this will raise Constraint_Error if the array has a length of 0. In the most common case, interfacing to C, this probably won't be a problem; most C functions that take strings require at least a NUL character. -- Keith Thompson (The_Other_Keith) kst@thomsoft.com (kst@alsys.com still works) TeleSoft^H^H^H^H^H^H^H^H Alsys^H^H^H^H^H Thomson Software Products 10251 Vista Sorrento Parkway, Suite 300, San Diego, CA, USA, 92121-2718 When you're a nail, every problem looks like a hammer.