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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c0d4e990924eb044 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!p20g2000yqi.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Newbie question -- dereferencing access Date: Wed, 11 Mar 2009 13:46:05 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: 94.108.248.223 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1236804365 3863 127.0.0.1 (11 Mar 2009 20:46:05 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 11 Mar 2009 20:46:05 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: p20g2000yqi.googlegroups.com; posting-host=94.108.248.223; posting-account=pcLQNgkAAAD9TrXkhkIgiY6-MDtJjIlC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.6) Gecko/2009020407 Iceweasel/3.0.6 (Debian-3.0.6-1),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:5019 Date: 2009-03-11T13:46:05-07:00 List-Id: On Mar 11, 9:26=A0pm, Tim Rowe wrote: > If I have an access variable, for example: > =A0 =A0 =A0s: access string :=3D new String'("Foo"); > is there an easy way to assign from s to a string variable? Obviously I > can't assign it directly, because access string is not string, so how do > I convert? Everything I read says that dereferences happen > automatically, but in this situation! Copy_Of_S : String :=3D s.all; This also works when passing parameters, e.g. procedure P (Str : in String) is null; begin P (s.all); -- Ludovic Brenta.