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,2f1406ca802cdec5 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.belwue.de!news.uni-stuttgart.de!carbon.eu.sun.com!btnet-feed5!btnet!news.btopenworld.com!not-for-mail From: Martin Dowie Newsgroups: comp.lang.ada Subject: Re: Aliasing or referencing assignment Date: Sat, 10 Sep 2005 10:01:24 +0000 (UTC) Organization: BT Openworld Message-ID: References: NNTP-Posting-Host: host81-152-56-192.range81-152.btcentralplus.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com 1126346484 8659 81.152.56.192 (10 Sep 2005 10:01:24 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Sat, 10 Sep 2005 10:01:24 +0000 (UTC) In-Reply-To: X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) Xref: g2news1.google.com comp.lang.ada:4564 Date: 2005-09-10T10:01:24+00:00 List-Id: David Trudgett wrote: > Jeffrey Carter writes: > > >>David Trudgett wrote: >> >>>Also, is the 'To_Unbounded_String("this is a string")' really >>>necessary? I thought I read in the ARM that string literals were >>>defined for all the string types. >> >>String literals are defined for all string types. However, >>Unbounded_String is not a string type. A string type is a >>one-dimensional array with components of a character >>type. Unbounded_String is a private type. > > > Well that explains that little mystery, then. I just didn't want to be > using all those "To_Unbounded_String" calls if I could avoid them. I > suppose they get optimised away in the actual object code, though. Er, no - why would you think that?...