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,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-01-18 10:51:30 PST Path: nntp.gmd.de!Germany.EU.net!howland.reston.ans.net!news1.digex.net!ois.com!ois.com!not-for-mail From: beckwb@ois.com (R. William Beckwith) Newsgroups: comp.lang.ada Subject: Re: Access type conversion... Date: 18 Jan 1995 13:51:30 -0500 Organization: Objective Interface Systems, Inc. Message-ID: <3fjnvi$98s@gamma.ois.com> References: NNTP-Posting-Host: gamma.ois.com X-Newsreader: TIN [version 1.2 PL2] Date: 1995-01-18T13:51:30-05:00 List-Id: Marc J Bejerano (mbejeran@netcom.com) wrote: : I have a question regarding access types. In my application, I have a data : type which is a string pointer (Type PString is Access String) and a system : address pointer (tempAddr : System.Address). : How do I equate the general purpose System.Address to the PString? Assume: String_Ptr : PString := new string'("Hello" & Ascii.Nul); from String_Ptr to System.Address: tempAddr : System.Address := String_Ptr(String_Ptr'FIRST)'ADDRESS; from System.Address to String_Ptr: Don't. It won't be portable. ... Bill