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!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news1.optus.net.au!optus!newsfeeder.syd.optusnet.com.au!news.optusnet.com.au!newsfeed.pacific.net.au!nasal.pacific.net.au!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Aliasing or referencing assignment From: David Trudgett Organization: Very little? References: Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:vVKqAhYlGcLtMa8pNlLjvomYypI= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 10 Sep 2005 17:38:14 +1000 NNTP-Posting-Host: 61.8.44.53 X-Complaints-To: news@pacific.net.au X-Trace: nasal.pacific.net.au 1126338165 61.8.44.53 (Sat, 10 Sep 2005 17:42:45 EST) NNTP-Posting-Date: Sat, 10 Sep 2005 17:42:45 EST Xref: g2news1.google.com comp.lang.ada:4560 Date: 2005-09-10T17:38:14+10:00 List-Id: 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. Thanks for that. Cheers, David -- David Trudgett http://www.zeta.org.au/~wpower/ A person cannot support the policies of the Bush administration unless said person is lacking in either intelligence or decency -- or, in the case of Bush himself, both. "I just didn't know" simply doesn't cut it when your proclaimed ignorance is based on lies that are an insult to the intelligence of a child. -- David McGowan, April 2003. http://davesweb.cnchost.com/nwsltr34.html